Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3243313yba; Sat, 11 May 2019 06:51:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAH6Ndmy949TazksuTwBPXj9qPau1FaFO0jIu9C6mt/eK0jUHlH1dShabrD21YoN5qqiLH X-Received: by 2002:a63:6fcf:: with SMTP id k198mr20557377pgc.158.1557582660740; Sat, 11 May 2019 06:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557582660; cv=none; d=google.com; s=arc-20160816; b=eP2u3TlJEWXf8ttHNmNKwT3yrCyparoQDU4VLGf2/HUa6lYWpes5byPcqgMXrzOSTu IBNfwA9mzfyhsPCU2UvJge8fHujbyHVwENthZEsQAsw8VEJNVeo6HGUETYTnHHPwq7rL IL4Hrj2UEY3PNJtiCaMGNSlJHYT/gHfgJaHQEUIoD7G6uy67HXtraEsmLFkeUO90U0SL U2O5rSdlOCV8cw41VMO01fwn9/N5VTOk0PwJCLEA3qlCih/iOo4gUhlhUONDO/AKoDLZ TchY4WAvH2acnae9FUtV4uAkBTOy1gHEaWoZPsmRU2t6rIpM+S7K2rtufMk1meb2gPrg Bhog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=e//w4Ocas9ZHyBK2Ejm8HUFUNgj9aNBbkGGE6NjIGsE=; b=X5k3IvIP9ZXGXU7HIqPj9FQR9EqGfMJ43+q6incchGN+GdmcABpyu8npRhC7g+JFIR MkvoB6NFAikqRfp4evjL4Uwr7x4qOgdJkyhZqRtcxYspmnvywR3NVahT78vJUQFd6Rim vhsHTxwLQQ0giNFHo6xfnCJkP7qjU1xDeyGemkAG7miq/LXEGShaJfF3n57pw4Up+Yd8 TdZLTJ3dy4C0ziMCOwHh2WGzPX09FbLpJH0UFg1DUSnRimWIvVWCpm/Za2+bcRArgMor ykVzGDqMXQDPlKuX1Ss3uPrTpgSgXNhjKkhS1ttGVqBFaf+gfXMbgDcFaqZp9sqb1fNQ hJlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b1si7084533plz.57.2019.05.11.06.50.42; Sat, 11 May 2019 06:51:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728588AbfEKNsW (ORCPT + 99 others); Sat, 11 May 2019 09:48:22 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35742 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbfEKNsV (ORCPT ); Sat, 11 May 2019 09:48:21 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hPSMH-0004ze-GL; Sat, 11 May 2019 13:48:13 +0000 From: Colin King To: Eric Anholt , Stefan Wahren , Greg Kroah-Hartman , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: vc04_services: bcm2835-camera: remove redundant assignment to variable ret Date: Sat, 11 May 2019 14:48:13 +0100 Message-Id: <20190511134813.5645-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The variable ret is being initialized however this is never read and later it is being reassigned to a new value. The initialization is redundant and hence can be removed. Addresses-Coverity: ("Unused Value") Signed-off-by: Colin Ian King --- drivers/staging/vc04_services/bcm2835-camera/controls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/controls.c b/drivers/staging/vc04_services/bcm2835-camera/controls.c index 9841c30450ce..74410fedffad 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/controls.c +++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c @@ -579,7 +579,7 @@ static int ctrl_set_colfx(struct bm2835_mmal_dev *dev, struct v4l2_ctrl *ctrl, const struct bm2835_mmal_v4l2_ctrl *mmal_ctrl) { - int ret = -EINVAL; + int ret; struct vchiq_mmal_port *control; control = &dev->component[MMAL_COMPONENT_CAMERA]->control; -- 2.20.1