From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 07BDFE7716D for ; Wed, 4 Dec 2024 17:07:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kyzjLjMRagyvWzdl5MnjPXEAjgE5hArllBgzqEyKERY=; b=e9p9qNhELyDFITD+DHno+djHAB qbCnoshFffhblUB9VXbQ2M+KmfpS7F4mJfetICy+AO+Z26yDbNANiyQyZgvpA5cNDuk6jzhhAsEGE 9AV59l7WDk9O1SQyBYwxzVvK3XmfcIpGtyHVSZvQTFliUxq0QFq27y3qwGEXWD9l4JCVq3qL9GZxk M8VrQfEuVIdZqrkfbHBcB/mPXNQm7bw+YD6XxH2V2FVzGd05W6u1WfGstKEz+Wm7hz0S0+OfT5uJy p6fw9BlsJHSeAnfAurbocPLxpS4FgqTVBgTxpTvFZRY5ACZX1/kxyiV498Q1Vp6+39izdGH6P2NHS fU6+1VKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tIsq8-0000000DI5h-2Sfh; Wed, 04 Dec 2024 17:07:04 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tIsoK-0000000DHlW-2wDP; Wed, 04 Dec 2024 17:05:15 +0000 Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E82114D4; Wed, 4 Dec 2024 18:04:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1733331880; bh=78gxj/BzoWW/qirjW9VkHtBeuxgnIovOYGaNqmENlXM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ORW1M6NSD/L10kyaJaBu69hYJhJ+ZqX0mJM0fy66bzh7YHxRWFubGNkNF7eKLB1KR 9CNIPWNKHYNh8kV+TjHEtQ3xd/UR78LQvYnDJUWm1qM+Ji7XmZeIZOoU6PWiZ0F3Pi IJoycTEnrm+Kr9CxYCPs4C2ThkNRheyOw3EmO5/0= Date: Wed, 4 Dec 2024 19:04:56 +0200 From: Laurent Pinchart To: Dheeraj Reddy Jonnalagadda Cc: dafna@fastmail.com, linux-media@vger.kernel.org, mchehab@kernel.org, heiko@sntech.de, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 media-next] media: rkisp1: Fix unused value issue Message-ID: <20241204170456.GA16224@pendragon.ideasonboard.com> References: <20241119072653.72260-1-dheeraj.linuxdev@gmail.com> <20241119075944.GA31681@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20241119075944.GA31681@pendragon.ideasonboard.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241204_090512_888904_9D5D181F X-CRM114-Status: GOOD ( 28.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Nov 19, 2024 at 09:59:44AM +0200, Laurent Pinchart wrote: > Hi Dheeraj, > > Thank you for the patch. > > On Tue, Nov 19, 2024 at 12:56:53PM +0530, Dheeraj Reddy Jonnalagadda wrote: > > This commit fixes an unused value issue detected by Coverity (CID > > 1519008). The error condition for the invalid MIPI CSI-2 is not > > properly handled as the break statement would only exit the switch block > > and not the entire loop. Fixed this by returning the error immediately > > after the switch block. > > The patch doesn't "return immediately". You can write "Fix this by > breaking from the look immediately after the switch block when an error > occurs." or something similar. > > > 'Fixes: 8d4f126fde89 ("media: rkisp1: Make the internal CSI-2 receiver > > optional")' > > The Fixes tag should be formatted on a single line, without outer > quotes, and without a blank line between it and the Signed-off-by line: > > Fixes: 8d4f126fde89 ("media: rkisp1: Make the internal CSI-2 receiver optional") That commit ID doesn't exist in the git history. The commit corresponding to the message is 7d4f126fde89. I'll update the commit message accordingly. > > Signed-off-by: Dheeraj Reddy Jonnalagadda > > I can update the commit message when applying the patch, there's no need > to submit a v5, unless if you want to. Please let me know if I should > take this version and update the commit message, or if you will send a > v5. > > Reviewed-by: Laurent Pinchart > > > --- > > drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c > > index dd114ab77800..9ad5026ab10a 100644 > > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c > > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c > > @@ -228,6 +228,9 @@ static int rkisp1_subdev_notifier_register(struct rkisp1_device *rkisp1) > > break; > > } > > > > + if (ret) > > + break; > > + > > /* Parse the endpoint and validate the bus type. */ > > ret = v4l2_fwnode_endpoint_parse(ep, &vep); > > if (ret) { -- Regards, Laurent Pinchart