Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2665732pxj; Mon, 31 May 2021 07:46:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmoaVpRp/uRacRJ61ZMqwRRxvViJwg/bnBk4zjpP6PnQN0sAvipZwoy4OJ2NwFcIdu2n6c X-Received: by 2002:a17:906:26db:: with SMTP id u27mr23725136ejc.532.1622472413586; Mon, 31 May 2021 07:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472413; cv=none; d=google.com; s=arc-20160816; b=WZgxSl66lZ8xpfJSpQyLgYz1PFyGav5wv+91Pz1IcVy/3sbd1ipiyAf5MIkRH25Kp+ ZohNPyyD57C41yh57T+UzpLyQwnK9pYa1MIhnVlSoA/URU5P8KexhOb1RjGI4SwFAzIX oSmwQYEtDA6+DlDSx66MAjGdbucgdacQZ0yAZRpZ/rE7/dro4/joSxDeUwvGdbSYiHNo IxSBg4sv6xlaNAkwmQboYWVWsFKnOHDtkHe6OmAehbklhXWDfmqD1j++Ga2c0Urx+a7g ZFemY7TgMzJyv9ycpIAALKVaTYAkD7cRysnP9Fr2fnpDHB3BQ2orufwJ4Tnln3GK4rP9 TWhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NWhyPRpBx2vLkEl6lFdlPgh3RrH1wDUvX9vsLB+YpYY=; b=rEZahuOKa8eX6ERoFQqgxeuscZ/EbDmy0vyZaGPxKidJd1GjKtOhOdu1IFGyUIKsas aJ/SVSlEws7j796FHgY3yKJZ+qf8jDCriRtzaC+H5I8MEy2DZZJLcfoTae6FGPehe6lN xat11EODDuY/8jN5oFrqkdp2x5RT/KpwZFPPFiYjbXJK/Q9LcQzVpl8DPJT1efzHGWwB s+rSopXwQOobEPhO5sDfZMK5YpxJ7mRMRKCjp1QV3i/AGWdnQgNwOTE4MhFuDyJ2rrme Kiuf5as1GVLxVKY4fDsY7av0IiW5volYhdfIjDwPpzbiB4N0kdpGBTYhotprVT1plFnl FxYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yJ8+3Zro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si13350745eju.692.2021.05.31.07.46.30; Mon, 31 May 2021 07:46:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yJ8+3Zro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233736AbhEaOrQ (ORCPT + 99 others); Mon, 31 May 2021 10:47:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:35734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232573AbhEaOAL (ORCPT ); Mon, 31 May 2021 10:00:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 995A161448; Mon, 31 May 2021 13:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468184; bh=4ozrvRKhSBrWO0tggrN1VXdEGw7IK6RcQBaEEf1bDNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yJ8+3ZroFgcvNe/ZB0NtP4kIWX5+5tyDJJHYrlkatbr9W+tk2t43k4qOiMbTQsLzD UNVKbICNiTZWF+hKMmwr1f+gmcfvmjuP8Him1YBvjij1vRM9xAFUyMwovaJy4S46OS 9KPUcm555O+sG5hS8NmzPNglxWo+tISt2WtqfG54= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Atul Gopinathan , Sasha Levin Subject: [PATCH 5.10 146/252] ALSA: sb8: Add a comment note regarding an unused pointer Date: Mon, 31 May 2021 15:13:31 +0200 Message-Id: <20210531130702.977822817@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Atul Gopinathan [ Upstream commit a28591f61b60fac820c6de59826ffa710e5e314e ] The field "fm_res" of "struct snd_sb8" is never used/dereferenced throughout the sb8.c code. Therefore there is no need for any null value check after the "request_region()". Add a comment note to make developers know about this and prevent any "NULL check" patches on this part of code. Cc: Takashi Iwai Signed-off-by: Atul Gopinathan Link: https://lore.kernel.org/r/20210503115736.2104747-36-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- sound/isa/sb/sb8.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/isa/sb/sb8.c b/sound/isa/sb/sb8.c index ae93191ffdc9..8b21920be4bb 100644 --- a/sound/isa/sb/sb8.c +++ b/sound/isa/sb/sb8.c @@ -94,7 +94,11 @@ static int snd_sb8_probe(struct device *pdev, unsigned int dev) acard = card->private_data; card->private_free = snd_sb8_free; - /* block the 0x388 port to avoid PnP conflicts */ + /* + * Block the 0x388 port to avoid PnP conflicts. + * No need to check this value after request_region, + * as we never do anything with it. + */ acard->fm_res = request_region(0x388, 4, "SoundBlaster FM"); if (port[dev] != SNDRV_AUTO_PORT) { -- 2.30.2