Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1064756rwb; Thu, 8 Dec 2022 06:24:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6gXTKrktcTFE4ZWoxBQvSWYjgNhr9hQoTHkaDjJgndEFJubwuE0fKUZxIDgAF9NXL9nrBx X-Received: by 2002:a17:902:7d94:b0:187:4920:3a7e with SMTP id a20-20020a1709027d9400b0018749203a7emr82808618plm.171.1670509462360; Thu, 08 Dec 2022 06:24:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670509462; cv=none; d=google.com; s=arc-20160816; b=Hh3UxPd03CZ2zHKnSl/qM/6hkNDWFz2z2RrahuP6oJQimG608HUmJl5Tk/yoFoh/qG IZIdWuiKfYxx/IoI2P0IRKBldjnA/9CGoE8P8eEaUGcaOmy5KOGfj9NeeaD2IzxzjE18 MhqKLw8SGgfB7RLKNl540XmqvP5MF4cT2rtKxm3Dwq1YcnhkQpyjYjiagU2v10Mkyi4o UmHja7ldOG8RJFpWmnw35Kd0O8cBuS+inAG9/DquDGJd19HHjVeQTp9kf0iB70Lpnp0u djVB4tt8dNcRDauoMJutOOozpqt8WdpJxoGJQWZ/WP4U7qXflzG4VRedulnDhaPe+rwE xkYA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=I9WP6UuK09ZiFFwZrEctyWpBf9jdRvt9QAuYsYKrf9k=; b=Ne7VRAGo9paGNIvvltOBWykPN6garmb00aTFEUwv6zLVTx5rYK3dVb01pwB8weaYUH COgDO0IOML3AQNo8D1TULxMVIxHNWOOzme2qmrWjC5vj42X442RSfaEZWMuJOzU5yOgL Fg6v5orwGejVRvpz+IKkvjXj/U7esMCqK4GipuuGjy7dr6w9htpMo67USwPO/wegp9iR Rv4ZTEMqWv8LR0X+PWODNHRhGJb27cjjlCG1xBSVCrvFie8MoFj1CJvKJMlrCf6PQsdB zng2q6vIJCCSzLqFmx+FT2AwigTj+oDm4ibPEwIuT9EmiHHPt2Vw52RSRSvN77C9VkC9 vr3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=YkKbf6dw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a170903244a00b001893b7f5ed7si26719994pls.205.2022.12.08.06.24.05; Thu, 08 Dec 2022 06:24:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=YkKbf6dw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbiLHOUr (ORCPT + 73 others); Thu, 8 Dec 2022 09:20:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbiLHOUh (ORCPT ); Thu, 8 Dec 2022 09:20:37 -0500 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0242D84DE5; Thu, 8 Dec 2022 06:20:36 -0800 (PST) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id DEEE7C0013; Thu, 8 Dec 2022 14:20:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1670509235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I9WP6UuK09ZiFFwZrEctyWpBf9jdRvt9QAuYsYKrf9k=; b=YkKbf6dwji/yyJ8JYIQMdoJpGqrErvK8AsQaXO8+OTDO4pvaRgSbJyDk5UmCPSbTzli6jK A6DIbIgIYA6SSTySQb2g1O5qlWXcyZ7Oafl7q4tXZMW248qTCCI2hfs0lyhRHHinWaS8z6 XopCP+xjm+Ia/VeoyH+unlabZk1aM+xgR3LOg/hvCaRekn4DQ/qDDdIZ3EW1Urbsu/bpbk tR2syjZGb6+Q8EB78fWbiCJQsx5nmAwrLy74jYEiCLsQ5rI3DlfFtlJsZ4rUTJui5flM9t jjGNVWksTlzaK+pgO7a8iVtf9v4JbXwTnYS99DovlM7ipIBIiMFtLalKZqnk0w== From: Paul Kocialkowski To: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Thomas Petazzoni , Hans Verkuil , Sakari Ailus , Conor Dooley , Nathan Chancellor Subject: [PATCH v3 04/12] media: sun6i-csi: capture: Remove useless ret initialization Date: Thu, 8 Dec 2022 15:19:58 +0100 Message-Id: <20221208142006.425809-5-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221208142006.425809-1-paul.kocialkowski@bootlin.com> References: <20221208142006.425809-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no particular need to assign ret when declaring it as it will be assigned before there is any chance to return it. Signed-off-by: Paul Kocialkowski --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c index 6d34f5c0768f..cf6aadbc130b 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c @@ -832,7 +832,7 @@ static int sun6i_csi_capture_open(struct file *file) { struct sun6i_csi_device *csi_dev = video_drvdata(file); struct sun6i_csi_capture *capture = &csi_dev->capture; - int ret = 0; + int ret; if (mutex_lock_interruptible(&capture->lock)) return -ERESTARTSYS; -- 2.38.1