Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp792820rdb; Fri, 9 Feb 2024 00:56:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKGCvL5xPWU0+fStH5GNfeZm6BYO0LiVpyxBhjai8iY3jiJgodLElUfaBfBgBVAnsu9shs X-Received: by 2002:a05:620a:2911:b0:785:ae55:edcc with SMTP id m17-20020a05620a291100b00785ae55edccmr1278992qkp.61.1707468969322; Fri, 09 Feb 2024 00:56:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707468969; cv=pass; d=google.com; s=arc-20160816; b=P6EjKw2gyMyFSR2enLklfrZMmn92XDVhX+YBnilFpTyonmly/ijP7J4dyhoPJrLAu+ fCNyMaRh+42AWhKSoVdwUDidSmnFaXBW1TW1tKeKRstDBi0gN3UW0zoa/8cnkEUWEAlW RkayQFsOJZQ5CDbZF7Zn1kEqxJ43Z/anxV3gF5R4SCPDaxaBbtgQO0ub/r0JOT6VgzkC qEMFMyZF5NFF7bLmYOJxdlpSX7UsquHbDgqhYXVhKq2IBmwyCCRyB0quGakP9CCsA7iG rTczVvU2FQLRClM5GouHleNBq/dP/mJq0plODDSDPz9YuLsVWq2u62987IGTOAPSbBHs z49w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=fiWSzdCEFiFP0/egHuEqBDpst3ABK0/e0ifDxf6Zt2k=; fh=yUro9ImRLoTlUfx+8n830bRaaQ4AfmReZ5OhzlwA4Tc=; b=rd5myFHbfqfQOBdTifmw45FolQgkYovw/1uOglrpObxc8GFXNY8wkwZ5tOW6PHxBDV XdhA05HFA88KMV7beKFNEtRpfiZJZAvKIl4FmSo1MHSvCso0GC2x/EJEZdKCQMYmpHEJ lgDPDlBhdOHuQy6hHXfSxZQnbZxdJOsBayHD+H3Redy3dcK5ENSItz0UQBf6pVjUKDr9 xhQW0zp1ef0II4/s6U58h3mtVMLoTo4Q4D2Sg+zXSoLyGwJDRIKbZLoNetxnq3hNF67+ e7RudGc3NVq6kwR9zID3telXEeVqMsP4mEsN3qJGPDJUuk65c42QqRL5SKJRh9J2fxCH Nx7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=AM0huqlX; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-59137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com X-Forwarded-Encrypted: i=2; AJvYcCUR/XLADx3EHr/XlCt7Q8zrlcz/KyVOzA0ZrQhYH9ezBOPxkDO/gMr1uVB26wg1QT+gxKLOwQ/+9qJk/RsOCloIxaZNLfkkVbBZKBEi4A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e14-20020a05620a12ce00b007858d12e41asi1469873qkl.155.2024.02.09.00.56.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 00:56:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=AM0huqlX; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-59137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 198E51C227E3 for ; Fri, 9 Feb 2024 08:56:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50B92664CF; Fri, 9 Feb 2024 08:55:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="AM0huqlX" Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21C165A4E2; Fri, 9 Feb 2024 08:55:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707468954; cv=none; b=L5rzrBZuAVE/uzWz/Q6ZBZ0PHRtsXNwiwXyU63LL2HmTTz0/JtRDJI97JPSbVcmIYm8vBvqAjUp53KIWpWKxw5OBLVaMIkZ1Smh3KfX75dcQVRxWLopjjFDpOBz7hXqIvVbFVpdziQzYaDNoKWSoJFM5iRs0qMOv63BQgclHlqA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707468954; c=relaxed/simple; bh=E1U8J9iRraitj9JXUyYrMtOXpUYyeC0VxwLoad5cX3w=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=og2A07Yvjka3ksOSWh2QTBiHZHvsbHJ4DrF5SXu6xamCKbV7R4Rzf87i3BWjRKvCVJRO7U2sGGnTrjqfRkMh5WIoNq2PmfF1HBCaeh/mr/XcnOA8BF+I//wML9uq/wr53rko/G1ymGGBuRFFfxPMh/QvvFQtpVubDQ2z+cx2xjg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=AM0huqlX; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4197UCZp005056; Fri, 9 Feb 2024 09:55:41 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=fiWSzdCEFiFP0/egHuEqBDpst3ABK0/e0ifDxf6Zt2k=; b=AM 0huqlX8S7Ty0Q/cXX3ry7PeDLEY1OegE+hwJKzdfwMNCcQoxupOsSMZlLf02C5ON G+E9y46MdgTdBRAIvXrLx+UcxSqHLAjgw/9AMul67+i1e9xFRklSMtguxhidW0e5 iU5ED0AlOMjhCd8sY7gG8Wtzh+UrPFpAI79t9BvbSBTM3ib/RsIlutE/ePfU+28m uMXipA95OsTdRw/PQywrezjuQyIpcZLP+5PnthmvJ4yxNLcyUphYqYqwc9VJVlBN F3+cwwQAJrRj5M4asSLru9IHkfuUfv+JMgpCPFvPuKWj04PU6Js2bafhj8wqSa+2 C6M5Lw6BdchNQskze7ag== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3w1eym8018-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Feb 2024 09:55:41 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 02A0510004F; Fri, 9 Feb 2024 09:55:41 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EF7F32105B7; Fri, 9 Feb 2024 09:55:40 +0100 (CET) Received: from [10.252.23.147] (10.252.23.147) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 9 Feb 2024 09:55:40 +0100 Message-ID: Date: Fri, 9 Feb 2024 09:55:40 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH][next] media: i2c: st-vgxy61: remove redundant initialization of pointer mode Content-Language: en-US To: Colin Ian King , Sylvain Petinot , Sakari Ailus , Mauro Carvalho Chehab , CC: , References: <20240205220508.1851545-1-colin.i.king@gmail.com> From: Benjamin Mugnier In-Reply-To: <20240205220508.1851545-1-colin.i.king@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-09_06,2024-02-08_01,2023-05-22_02 Hi Colin, Thank you for your patch. Reviewed-by: Benjamin Mugnier On 2/5/24 23:05, Colin Ian King wrote: > The pointer mode is being initialized with a value that is never > read, it is being re-assigned later on. The initialization is > redundant and can be removed. > > Cleans up clang scan build warning: > drivers/media/i2c/st-vgxy61.c:632:33: warning: Value stored to 'mode' > during its initialization is never read [deadcode.DeadStores] > > Signed-off-by: Colin Ian King > --- > drivers/media/i2c/st-vgxy61.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/st-vgxy61.c b/drivers/media/i2c/st-vgxy61.c > index 2d64466d7ecf..b9e7c57027b1 100644 > --- a/drivers/media/i2c/st-vgxy61.c > +++ b/drivers/media/i2c/st-vgxy61.c > @@ -629,7 +629,7 @@ static int vgxy61_try_fmt_internal(struct v4l2_subdev *sd, > const struct vgxy61_mode_info **new_mode) > { > struct vgxy61_dev *sensor = to_vgxy61_dev(sd); > - const struct vgxy61_mode_info *mode = sensor->sensor_modes; > + const struct vgxy61_mode_info *mode; > unsigned int index; > > for (index = 0; index < ARRAY_SIZE(vgxy61_supported_codes); index++) { -- Regards, Benjamin