Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp560768pxu; Fri, 4 Dec 2020 09:43:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVuFZDlEp4HJZlj2tJk2nP4Im1TSWxz27R584/1SYZ3i9SiYAgTPWlUBYdzsUPWPY43Cqe X-Received: by 2002:a17:906:3712:: with SMTP id d18mr8344828ejc.178.1607103789325; Fri, 04 Dec 2020 09:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607103789; cv=none; d=google.com; s=arc-20160816; b=Hf/B5X0iIdo7qOOnP8AdFlUdfeyZufmP7iH5YtIewpnbW1dHQHACbEDQ9z967vzeQC 9uk2mclnKowQIVdZBWDQAPt9CMD4cu7iO6weEeEEbwbAcIX1SJdEbsyBUeNWqdoIY6g3 0j6a4C+BLWwjgocW/xcVqX2gY73ACNgC5ndY3N2s93mmpVmPeIJrEJRdwZIoJVrWAtmR zsM2Idq2eYAbcIKluv5u9UYGvf4amwh+UFI8vpTzGP5r43uM0SD7eSgfglhKBxy9kaaD 7UQmoz13RNRdAB7UssZr95897NhNYBN/6m1MpzltLsMHNo/v6P6mZeqQD6GYd0kSqIxs +jww== 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 :message-id:date:subject:cc:to:from; bh=11/jEqWvo6NNkS1C0rrqnBLqFMZS/fcujO3z0ZmWaeQ=; b=fqHz9cGNB/jHkJEmciNTTxS97w9X2NKUsm9liDOTzXQfJpmNimuzyeLfInzTc0O17X 9/Zg67sSxjR/qxFjIVb6lbs29FT/oDvKqXAgU13x+XlxTIShVox5oMxyNLqLj1jVjK+9 5aS5An4CYR77TMau6n2mTE3TTikYXOkQUZhQ0aZAzGsHJIhwdeBItYibjP4yx3YgGC8/ ZLp9nCTxH9t84WFXU3eG4/pxEvYygWfl7roPHI3wP4zk8CLNKDOpAsS8dx4MzRP1i7x8 Rt0URutmY/sWiMj632u/XZEMIdH/DDl9uN+CN4Je/0AlndZm0A3Woycn3GDiSvB3d0BK Pn+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si1762945eja.497.2020.12.04.09.42.46; Fri, 04 Dec 2020 09:43:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731268AbgLDRjT (ORCPT + 99 others); Fri, 4 Dec 2020 12:39:19 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:45764 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728451AbgLDRjT (ORCPT ); Fri, 4 Dec 2020 12:39:19 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1klF2P-0006Ov-QB; Fri, 04 Dec 2020 17:38:33 +0000 From: Colin King To: =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Mauro Carvalho Chehab , Sakari Ailus , Jacopo Mondi , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] media: rcar-vin: fix return, use ret instead of zero Date: Fri, 4 Dec 2020 17:38:33 +0000 Message-Id: <20201204173833.1146570-1-colin.king@canonical.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Currently the return error code is in ret is being assigned but not used. It and should be returned by the return statement and currently just 0 is being returned. Fix this. Addresses-Coverity: ("Unused value") Fixes: b9ad52aafe38 ("media: rcar-vin: Rework parallel firmware parsing") Signed-off-by: Colin Ian King --- drivers/media/platform/rcar-vin/rcar-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/rcar-vin/rcar-core.c b/drivers/media/platform/rcar-vin/rcar-core.c index 98bff765b02e..e48d666f2c63 100644 --- a/drivers/media/platform/rcar-vin/rcar-core.c +++ b/drivers/media/platform/rcar-vin/rcar-core.c @@ -654,7 +654,7 @@ static int rvin_parallel_parse_of(struct rvin_dev *vin) out: fwnode_handle_put(fwnode); - return 0; + return ret; } static int rvin_parallel_init(struct rvin_dev *vin) -- 2.29.2