Message ID | 20221208114742.399461-3-paul.kocialkowski@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp145605wrr; Thu, 8 Dec 2022 03:49:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf7z+8ipb31/k5IBbaQvw4E/vxqod0/VZExt0nuNrBScstEtySkmtehKIZWUQFAQk5u71bpK X-Received: by 2002:a17:902:ef44:b0:189:6793:644f with SMTP id e4-20020a170902ef4400b001896793644fmr60918800plx.38.1670500163560; Thu, 08 Dec 2022 03:49:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670500163; cv=none; d=google.com; s=arc-20160816; b=S9R++tQ6B41zD266pj/7NahcTRzQjS4jTRrn3vnb5nNhC+Rp5DdidZvK7FNHcBnBxV 6DyAceG6xlIvLjc3t778zl2D20FuABB+5CdyJp+JVz+NDJFhbtdquBKFzFZ2JXQmMVp8 5Ru9LpEdTIAQxMrclZTjx/Lkba7AellIzD2r1YoWneutv5CxZ6VBPFhV6dKcmi96YxUk C8s4QZ3cgSVFZ53UPcj/tMFYr1B9i0r0Lc0YWegNuw6NmsX3uIrlzsp56sickOPqzvM1 9UbifhLRrTbjLsbBa9tDheNramMMyP2Aad3k1ESMP0E6M/ofr5aI+HPRPDChSLusweUn PbtQ== 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=l8tGedhlD404yby7OQhWww/JfgdO2lLcitpJKVVm1BNKIGJvIJoyYc4gV/QZIf6L45 5Fs6gSaKqJWldfy1tL2GPyXg7tp5ZE1WwFpwkgtdoAo86W6tn3q/XnOK2quJeLdip/Qq pvNZWqn4BuVnzVh8awAzi6Qq1hBJPZmmQb8vTCJlj6rN4MX0iI/e/YQjkMRe8TXT73bj X+8OBzl5j7unZwdXpTRBFZ2tXDt1BuLvFudOPziy+bg9mP5G3zi32fK4lm0SBAwRUuxN SsSUmQOrPpFONlo3n6joHoHmk0cAlXmbei//IY3Hsm9BgGg+plakIfjY16Qx2MLOqq9M YYgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ao4e4f7P; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc22-20020a656d96000000b00470759f312csi19023760pgb.864.2022.12.08.03.49.10; Thu, 08 Dec 2022 03:49:23 -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=ao4e4f7P; 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 S230055AbiLHLsY (ORCPT <rfc822;foxyelen666@gmail.com> + 99 others); Thu, 8 Dec 2022 06:48:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbiLHLsO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 8 Dec 2022 06:48:14 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 968CF26118; Thu, 8 Dec 2022 03:48:06 -0800 (PST) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 763A8240005; Thu, 8 Dec 2022 11:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1670500085; 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=ao4e4f7P+lJKy9qfYHzHIF7eAn1YDeHe1Wt9uSb6KhpWzuCq1/jRdfb3iZPDFpxMdzLmHx yfpvtKpaDZyfOWneurQREbwg5Ws1BqT4kIlOvTaGIH7H2YbSl4SX7otgyx9JwfUtfpq7aU ixeElXx6iV2GawAbAyjpO7G5UJtDPTJmh3gWG7gug/fbYZKD9nbl6qRvBv/GZ7kxGu5UNl vTl5RtQoSYITURDbmRHAq9BZpfZT0Jzy9zwc/cJihzhXaTzMcxn6z+zppoXULfK0r8sj42 oea3bxwsremp89F+p8ndsMEmphVs1QydErCL1ZX9HtJFjE35YFWvBGXQkH/RTA== From: Paul Kocialkowski <paul.kocialkowski@bootlin.com> 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 <yong.deng@magewell.com>, Paul Kocialkowski <paul.kocialkowski@bootlin.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Hans Verkuil <hverkuil@xs4all.nl>, Sakari Ailus <sakari.ailus@iki.fi> Subject: [PATCH 2/9] media: sun6i-csi: capture: Remove useless ret initialization Date: Thu, 8 Dec 2022 12:47:35 +0100 Message-Id: <20221208114742.399461-3-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221208114742.399461-1-paul.kocialkowski@bootlin.com> References: <20221208114742.399461-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751646379064742129?= X-GMAIL-MSGID: =?utf-8?q?1751646379064742129?= |
Series |
Allwinner A31/A83T CSI/ISP/MIPI CSI-2 media fixes
|
|
Commit Message
Paul Kocialkowski
Dec. 8, 2022, 11:47 a.m. UTC
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 <paul.kocialkowski@bootlin.com>
---
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;