Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2204253yba; Fri, 19 Apr 2019 14:26:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBBOSb+rG+QrwJw+ubTOYCxj/zMfeBwywE0tz6OsdCpVrnhigbunYLxm2d/HyBZWfhjT8q X-Received: by 2002:a17:902:aa85:: with SMTP id d5mr5781769plr.251.1555709159918; Fri, 19 Apr 2019 14:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555709159; cv=none; d=google.com; s=arc-20160816; b=qDXXINlCRe5OcePANm2EiktAmwu7IpEowEL8raaa2wZF8+0hIPm2Eh2FfCBu/z8Slc vXrzcAIAtjtDOlFQo2Yn8Lh1uH6HDUt8Ngrj3JoaLklyku4KVoCHDV66fQ8/164ZHBTx Lsf0gHkr0wEtfISgj/P7tM6/BYqif7+WEkdS4UtxRf8y3+Wn8gjsqtgd1UJWjpM28qRi nR5K4LQlvUXFCB10plxgenLCOyGIlAlg09v+c5NSEVISn2UCuT+Umy1U8JNlXWwKWcmt r13wCo6L1UXWRo6mcmeliH5AxeRTJYfzfyT/G40uHenPToUDjxd3KcB6JwEGAmSYPaet Scbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=zyKRDcUH7uLbLXC7F5+i2ZLE7UEgE3LLZr7KeS/yAcc=; b=LhSK1J46Sc82M4zQoIOceDpsJSu0WxG0IQYX8AyirmpBEXpuYA2Wmo9VE1ECsAQKzr wzCsOC3dxfOv0BbQortcmivCdGRKKWWpIuYyxBtFWfXdu6BwH4KuXjq5/kiD6XKFAkXV PPQUpdbKI0w+W4lZCGlTJX+ojux9qiIuNq++WWqTa0gWX1OJw/gta3gr167j9jtlGXCj heLhYDqX8VcYFyp79M4NWhcbD9N2xLmAuHLwiCpPQn4wlJb0NG3O1xcyuvFi4QjVYU5M X2tgDRHzlvzOZ1WG0/Ivvp1yryWZJrawjSbrcFEdw4S3211rhnxtzi50P3ac0ESS/r5V KRNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nMlbNLU8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si5451468pgq.193.2019.04.19.14.25.44; Fri, 19 Apr 2019 14:25:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nMlbNLU8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727031AbfDSVX0 (ORCPT + 99 others); Fri, 19 Apr 2019 17:23:26 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:43327 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbfDSVX0 (ORCPT ); Fri, 19 Apr 2019 17:23:26 -0400 Received: by mail-oi1-f195.google.com with SMTP id t81so4796562oig.10 for ; Fri, 19 Apr 2019 14:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=zyKRDcUH7uLbLXC7F5+i2ZLE7UEgE3LLZr7KeS/yAcc=; b=nMlbNLU8/dtKuZ4O8eAeKpGastYsWbCi4GG/9ih+epUAQAxmbubLKuLfU54olIA6aI vCYc3BpmqQtaT98EFLcvM1JGucRvjI/yHy8RE6CJJJQMq/G1Zd8MBVKnm67G1JmTcnZ2 yfmz06ZMjBIltMI8SeP9y45Ts4CJfhuTyqgi2pDOq373ynueMlYezIZgYUbLMgT6K3XF /eNc6zhKIHT2NB6pZ1Z14aAe6bLGPCwI7twQfeAasNwY723dCmdtIEkgn48fcTFOqmP1 PgtzMGcrYxYDcDHnZwyffTJC1uA/1g0a3AydpoTIlN4ByFkJ2Z8Fc4fAKHchH1CbxIYg +3qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zyKRDcUH7uLbLXC7F5+i2ZLE7UEgE3LLZr7KeS/yAcc=; b=KecFP3ej1S7y5X53G69efQteXURRBnluRkEMKHA346RtVahw/fZxRYQr0dHHkCZTMk mTyDb+teMT0yvxSH6dau7Ud0d6ZMJYohtpwijPbfkdGnBCAj7+4juRhTqynm4EXZbThB PGRVvY1/eujoABQT0hS/rqUhoM73lVOmvyObasFOxQN51an1U5HZxXXyB3sQvIzeREqP SQ9Gs2H820CqZ5AH4Ef1B0aPg5ZZdjLDPFAfk0AKuZXABTvwA859KIyEvo56GIwHCHS9 t6qzOZoMaIvRJdvV4RvZqr96P0pgR9FX43WruqM5rCE3hi3698N7+OsmpGjD48a7ETVK 4opw== X-Gm-Message-State: APjAAAW0zSdH0tAu+7U102NAlW1cX5OJ+XI6SgczNVdPq8jM1Ybmf3Ry hOh4lDDht4cw4T2SarSMDtSvfXTNFJxAhA== X-Received: by 2002:aca:5d8b:: with SMTP id r133mr3196348oib.72.1555709005370; Fri, 19 Apr 2019 14:23:25 -0700 (PDT) Received: from madhuleo ([2605:6000:1023:606d:151b:11be:d797:d50]) by smtp.gmail.com with ESMTPSA id n3sm2459066oia.46.2019.04.19.14.23.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 14:23:24 -0700 (PDT) From: Madhumitha Prabakaran To: eric@anholt.net, stefan.wahren@i2se.com, gregkh@linuxfoundation.org, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Madhumitha Prabakaran Subject: [PATCH] Staging: vc04_services: Cleanup in ctrl_set_bitrate() Date: Fri, 19 Apr 2019 16:23:21 -0500 Message-Id: <20190419212321.7325-1-madhumithabiw@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecessary variable and replace return type. Issue suggested by Coccinelle. Signed-off-by: Madhumitha Prabakaran --- drivers/staging/vc04_services/bcm2835-camera/controls.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/controls.c b/drivers/staging/vc04_services/bcm2835-camera/controls.c index e39ab5fae724..f87fa7f61db3 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/controls.c +++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c @@ -607,18 +607,13 @@ static int ctrl_set_bitrate(struct bm2835_mmal_dev *dev, struct v4l2_ctrl *ctrl, const struct bm2835_mmal_v4l2_ctrl *mmal_ctrl) { - int ret; struct vchiq_mmal_port *encoder_out; dev->capture.encode_bitrate = ctrl->val; encoder_out = &dev->component[MMAL_COMPONENT_VIDEO_ENCODE]->output[0]; - ret = vchiq_mmal_port_parameter_set(dev->instance, encoder_out, - mmal_ctrl->mmal_id, - &ctrl->val, sizeof(ctrl->val)); - ret = 0; - return ret; + return 0; } static int ctrl_set_bitrate_mode(struct bm2835_mmal_dev *dev, -- 2.17.1