Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2221763yba; Fri, 19 Apr 2019 14:52:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpn4rbH5xp/U4YGqdYE1chmPBWf8OZPiN6LkaLmEKoWoVkh85S/X+fL0UekTSXK7kMXoOY X-Received: by 2002:a63:5012:: with SMTP id e18mr5902611pgb.383.1555710749809; Fri, 19 Apr 2019 14:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555710749; cv=none; d=google.com; s=arc-20160816; b=gWDEntmMHZBBkghkb4ocwibgTkbdPVsLUTq66U2u1G1s8OqQANSKa6yuTtycLe28Tb ut5oHKP42YfDRRLHuFReS2EwiamIgmUwP1qxli+BTahM9KjcEUZiLwmKUSyUUn7COaqo oClRtYL64BjJvilyjQxLxmM3He4yRdMnEz3ThQMf8zFPHP/c9kzAZ2g5JZ40yYSwPyzT mcYubKfwqz8v6y61LMqKKV4yYZSaiKJaGal6Z2kSGJrAbrQV/YDdNLvK/Fipw2Ig4ph4 OIwY2zkEWDSO4N55/4VhOpwXOo8Cu0h6bGD5zDxe/iCCZe/7OTocKRgNBMckhhzhB99S E9Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:to:subject; bh=Pbixkd2rbEfppmXMV5VW3SmXwRm5Iim5flKOH0p7UDo=; b=GEMAKRdpT3G8uCwbwd0AClZAKCaAB7FG6MWWt6bGeRvEVmpJOJ/1YWA5gux/SXt36M TQhkj/KVPq8BgIATqB0O1fReMmL2PU4yVpQv/B6BPIqglrAQDVs0ea2IuNYjCcioRz0+ +gEalWEANCzL8kus2byT4HetUKLoLZRfzdtEmbiejIfYcaMsCgdk1d1IIBz3680+JdvP WxTvLWaIbWL/lOPF7F/Mzl6jp2YwMs8ovbFhFHIF5cNcJ30Kd8bnBRoEPXLdb3jNQgUY IpFfZrYEiK0Vs+YlE0CyKiCf/5LeIesLFTEH94QujmZVFwuABxVYI/a6GhUnEbt45Nkz LMIA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si5483765ple.102.2019.04.19.14.52.14; Fri, 19 Apr 2019 14:52:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727665AbfDSVuI (ORCPT + 99 others); Fri, 19 Apr 2019 17:50:08 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:40967 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfDSVuI (ORCPT ); Fri, 19 Apr 2019 17:50:08 -0400 Received: from [192.168.1.164] ([37.4.249.100]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MBUuP-1h7TQv0yY3-00Cz70; Fri, 19 Apr 2019 23:49:50 +0200 Subject: Re: [PATCH] Staging: vc04_services: Cleanup in ctrl_set_bitrate() To: Madhumitha Prabakaran , eric@anholt.net, 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 References: <20190419212321.7325-1-madhumithabiw@gmail.com> From: Stefan Wahren Openpgp: preference=signencrypt Autocrypt: addr=stefan.wahren@i2se.com; keydata= xsFNBFt6gBMBEACub/pBevHxbvJefyZG32JINmn2bsEPX25V6fejmyYwmCGKjFtL/DoUMEVH DxCJ47BMXo344fHV1C3AnudgN1BehLoBtLHxmneCzgH3KcPtWW7ptj4GtJv9CQDZy27SKoEP xyaI8CF0ygRxJc72M9I9wmsPZ5bUHsLuYWMqQ7JcRmPs6D8gBkk+8/yngEyNExwxJpR1ylj5 bjxWDHyYQvuJ5LzZKuO9LB3lXVsc4bqXEjc6VFuZFCCk/syio/Yhse8N+Qsx7MQagz4wKUkQ QbfXg1VqkTnAivXs42VnIkmu5gzIw/0tRJv50FRhHhxpyKAI8B8nhN8Qvx7MVkPc5vDfd3uG YW47JPhVQBcUwJwNk/49F9eAvg2mtMPFnFORkWURvP+G6FJfm6+CvOv7YfP1uewAi4ln+JO1 g+gjVIWl/WJpy0nTipdfeH9dHkgSifQunYcucisMyoRbF955tCgkEY9EMEdY1t8iGDiCgX6s 50LHbi3k453uacpxfQXSaAwPksl8MkCOsv2eEr4INCHYQDyZiclBuuCg8ENbR6AGVtZSPcQb enzSzKRZoO9CaqID+favLiB/dhzmHA+9bgIhmXfvXRLDZze8po1dyt3E1shXiddZPA8NuJVz EIt2lmI6V8pZDpn221rfKjivRQiaos54TgZjjMYI7nnJ7e6xzwARAQABzSlTdGVmYW4gV2Fo cmVuIDxzdGVmYW4ud2FocmVuQGluLXRlY2guY29tPsLBdwQTAQgAIQUCXIdehwIbAwULCQgH AgYVCAkKCwIEFgIDAQIeAQIXgAAKCRCUgewPEZDy2yHTD/9UF7QlDkGxzQ7AaCI6N95iQf8/ 1oSUaDNu2Y6IK+DzQpb1TbTOr3VJwwY8a3OWz5NLSOLMWeVxt+osMmlQIGubD3ODZJ8izPlG /JrNt5zSdmN5IA5f3esWWQVKvghZAgTDqdpv+ZHW2EmxnAJ1uLFXXeQd3UZcC5r3/g/vSaMo 9xek3J5mNuDm71lEWsAs/BAcFc+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PJVzP4jQkJKIAXwFpv+W8CWLqzDWOvdlrDaTaVMscFTeH5W6Uprl65jqFQGMp cRGCs8GCUW13H0IyOtQtwWXA4ny+SL81pviAmaSXU8laKaRu91VOVaF9f4sAEQEAAcLBXwQY AQIACQUCW3qAEwIbDAAKCRCUgewPEZDy2+oXD/9cHHRkBZOfkmSq14Svx062PtU0KV470TSn p/jWoYJnKIw3G0mXIRgrtH2dPwpIgVjsYyRSVMKmSpt5ZrDf9NtTbNWgk8VoLeZzYEo+J3oP qFrTMs3aYYv7e4+JK695YnmQ+mOD9nia915tr5AZj95UfSTlyUmyic1d8ovsf1fP7XCUVRFc RjfNfDF1oL/pDgMP5GZ2OwaTejmyCuHjM8IR1CiavBpYDmBnTYk7Pthy6atWvYl0fy/CqajT Ksx7+p9xziu8ZfVX+iKBCc+He+EDEdGIDhvNZ/IQHfOB2PUXWGS+s9FNTxr/A6nLGXnA9Y6w 93iPdYIwxS7KXLoKJee10DjlzsYsRflFOW0ZOiSihICXiQV1uqM6tzFG9gtRcius5UAthWaO 1OwUSCQmfCOm4fvMIJIA9rxtoS6OqRQciF3crmo0rJCtN2awZfgi8XEif7d6hjv0EKM9XZoi AZYZD+/iLm5TaKWN6oGIti0VjJv8ZZOZOfCb6vqFIkJW+aOu4orTLFMz28aoU3QyWpNC8FFm dYsVua8s6gN1NIa6y3qa/ZB8bA/iky59AEz4iDIRrgUzMEg8Ak7Tfm1KiYeiTtBDCo25BvXj bqsyxkQD1nkRm6FAVzEuOPIe8JuqW2xD9ixGYvjU5hkRgJp3gP5b+cnG3LPqquQ2E6goKUML AQ== Message-ID: <2d48664a-eb36-4fcc-7bc5-b1b480dbce9a@i2se.com> Date: Fri, 19 Apr 2019 23:49:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190419212321.7325-1-madhumithabiw@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:X7GVbpZeg6xHEvo9dwFMGWrzQ1nzrxaJosD6YyVtVZNvg5uAitG LYFuu8NZG7HNHLKMtRxKcE21f2GEgohpIXzyN7GU6B+HsviCbpf20SCy02+Lnq+Rm9fEIJZ l1hFGQiSASoWh4BAaVKjfo2qytCF4WQoopsgHCCcj5jx0kedtgO6fU/kymNRQoZ+bfMk2eh 7Rd46DcThOvMkWUxXTl0g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:CYimwQ28WDM=:U4/tNwKiv6GI6LCVUvOesx GFcX88jNMBfkectoX+aVSnFDzdBvqvvcUVI56sfZ+GdZB4FTC7sEH0clmqVP4kDlL+G18qahR k0Opivq0CjkFUiABpGSiMbYoZHSCvRQlL8ty5gCN697LaMuTdhxnYRYb2n/kRE7bUHv/NnAgJ 8rHoYEEKUrvspb0K5P/TocJUyG9Qlft94b1Kld/a8BPRVN7rYtYP/xtdKBIN97FXaUB7Vc91Q 8ShmU4+LESvTbv/ABdbo+au55U4cCurEa5hgunjfFw8dRDoy+Z9aNkBUKpRvoNiV5HTfvb57F +FYxcDPQy+FtQrtDn+2u5pdaEBJwMMKpG4xQ76xFTJtPYwHvTw+tyLFAULryG0bfqUy7bmkf9 j/xlyyhO3hdeswYGwfunu7Zij0UtYAqTEOsCbvL6+Idm8OKXQBu+AfRMu0NkKKwSKrk5/OdPW 59go8r54aYENlY+R9s49QW8WjJ6a9Ajzd0XgYdzAeTrw7l8d+9+ID5SCGytTR4amzoWqAPYbp 9YFoVBew9t46xGubQuJLr513imbCBGAIsCNks2uqMTh4miGencBYb+AmNwvVnKwXOU+I++m88 1lNllm6V8SYStaBZhEDrREYXyQLIN8Jm2lQ6+rTcmWYirqZ3nUA5AGcOLQVDcu7xEL3N3Z15P hd+NODE1MyFKNe23i0QaJXrGp8gj1MnMPcCQVI+318x5NUzdIdEMGlzBIsLzq+3cQ7OBFmYUu iQ0d1mQerYJAfcOh920oRLRZQTusWw8OUypjWGYj3cn66pTgg5b1mmSz9QM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Madhumitha, Am 19.04.19 um 23:23 schrieb Madhumitha Prabakaran: > 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; i don't understand why we can remove here the function call. Stefan > } > > static int ctrl_set_bitrate_mode(struct bm2835_mmal_dev *dev,