Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2701738pxj; Mon, 31 May 2021 08:35:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQWqjPZhs02x7m2Chu+ZKbvKgdiT2dJDZgADXxkmk3+c4/IQWx/BCETgiCM7Q1r0gwzcHo X-Received: by 2002:a92:c541:: with SMTP id a1mr18008806ilj.99.1622475359239; Mon, 31 May 2021 08:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475359; cv=none; d=google.com; s=arc-20160816; b=jSEZsYa6NTfLK6w0oUNgvMVwxafW7Y5Dxv1/gHSFiEAc+tyTKglMUjX34E9utPrEug 5wgQPgSH3MWgm08O2qrCEf5DAGDCKkyxPftenw3fsWg5YPLpFTL/rHzWeIXXZLbY8f0k K9F6dtAIAEWSwRnVmG/f0aqUpe1jyk32yd/U6PXtHn23KGoaol3qUC6Z8pOFZZ6w5m+K O+fag9HZJQD8c8XZMz+oOuUZppPy+NMFJ9nEHl86zI4P9Exqede3ylRbyRDevyWlz5eX fA2PIpYSohqWRnsRF70SIIxmdV/734jNuLcZM5FzDTOboqI5t8ofgHK98WNEpcPwyRHN Gyig== 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=EdyGTyIFRJD5s8dmaWye6Lm8Lk8xi9CQhafRo/X84KE=; b=wiLhzgkM0CcRLGvi7d00uGK2WHikmthUp5XPuS29V7jZDpEsXfOjntnzE21NExNSwY xXLsIcFbCbuh4H4Wnu4GSYVEHnDNwqs0Z0mc24+EHU7BeTgIHe04Vi55Eds2wXfVqZ4V gkqGP8025ICJmv+PbdhqRhvdVi4kyEf83GlOvbfnhvEkUFvytHom93lmN/fw6KShlDMb 6B0tIr33TEIGG2WQu1wMoDSzCHXo2eu+7juYzGcg+88Ux2maI02+cCSSb4YH+rzhsDRy WpegTpds8rIhHgKJJVKClukweU89JdZ96dHGnBptXOtPqO4jF0K++64dx2L6gO92NE4p jsTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="erW/FEK7"; 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 v7si14268884jal.113.2021.05.31.08.35.46; Mon, 31 May 2021 08:35:59 -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="erW/FEK7"; 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 S233475AbhEaPgm (ORCPT + 99 others); Mon, 31 May 2021 11:36:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:46050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233854AbhEaOVb (ORCPT ); Mon, 31 May 2021 10:21:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E718C619D1; Mon, 31 May 2021 13:45:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468714; bh=5jCj7ShKUHLuCxrfqjXLVm7ckSK63N275HJHVpGtBaE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=erW/FEK7ZklIxluSZbSmXTGN//qnzEX24ITtbRPbEMR5MumnJxNPWPaHHSkObxeKI kbCDi4FoW8U7w4j2lMCLziqhagm9qPA5/KlHm15vt/sJfawroEMskbTAZobTa2X9Kv Xf/9LXYPqvybAaRtJ3Y4w3oU1EXgOB9HP60J/LnQ= 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.4 099/177] ALSA: sb8: Add a comment note regarding an unused pointer Date: Mon, 31 May 2021 15:14:16 +0200 Message-Id: <20210531130651.315666007@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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 6f1fc8789676..4386c24d2dcc 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