From patchwork Thu Dec 8 13:55:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 13068429 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 2EB8CC3A5A7 for ; Thu, 8 Dec 2022 13:57:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gfLECWe1izhERD32rsLnJ5N0AE15J5cAgSDwYqm8t78=; b=v2smcUDwYSmwGE jidCWxwxQdwtXnKrpYzLQBLDT2UXnZQ4cRQ4Od2gXEUoUYkt5bPzhQZZ6OivNZnn1fI3JDBFOJmkT A5wlWlvP0I7oGvWJfV5EtpGajK3GdvrUG8jR9h0OnBNIJAFMeYCi6eCt09/N8OQCazTmdzsv9rCSs dqU3b5dzkdObB4aln2VoqIh+CsLzAhx2i3FShhxkdRPYjHILEs7FRWKYmm4Aljz5tHG6Kud9dLIXT DCPKKJACsqwvq8gNCOTEyptTCjjrXC2D9xtHB8jnMJnCvd2k958L3oPDERnESTC32XmCY9U2ejdJM TSEXE3OFwEWUfdwMfuUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3HNh-001RHl-Rd; Thu, 08 Dec 2022 13:56:09 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3HNL-001Qq0-F0 for linux-arm-kernel@lists.infradead.org; Thu, 08 Dec 2022 13:55:49 +0000 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8F00C20019; Thu, 8 Dec 2022 13:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1670507745; 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=i3cfaYEH/DQZOcJK0DKD98VcDygnOXzzbGnsd+/9NP3e+6WcZ+U1IK6Pn6xv4mJo9ww01g y7VcqMrCWYMSjpY8JkOzpyvcWRkgo+dGobQB/D7cUBpg/XU3VTtnMU1d1ifj3mYDh0u5H4 kjs91HSY5jDQA/YpXXFAA//HH//C6ElCEzWwb1ctlnfeOj6pSlWzNFtp31qhf1mF2xWCCa YN0RwHK7yxvmogF/r8EQ9pB/Lh0nPbifNLMhqoCjVpv/Dwos9PJflv1hke/VDHaa7U82ef KzCkmTJDCi3W4X5PaXNSKF48xoR3j9+cEmK/nqW1qiC+2sYfahEPDGhtVFiq5w== 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 v2 04/11] media: sun6i-csi: capture: Remove useless ret initialization Date: Thu, 8 Dec 2022 14:55:05 +0100 Message-Id: <20221208135512.421903-5-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221208135512.421903-1-paul.kocialkowski@bootlin.com> References: <20221208135512.421903-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_055547_673435_984A5A1B X-CRM114-Status: GOOD ( 11.98 ) 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 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;