From patchwork Wed Oct 12 14:50:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9373331 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C7D5A60487 for ; Wed, 12 Oct 2016 14:50:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B622C29E02 for ; Wed, 12 Oct 2016 14:50:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A950C29E11; Wed, 12 Oct 2016 14:50:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CA2429DD3 for ; Wed, 12 Oct 2016 14:50:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933541AbcJLOuY (ORCPT ); Wed, 12 Oct 2016 10:50:24 -0400 Received: from mout.web.de ([212.227.15.4]:63164 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933264AbcJLOuX (ORCPT ); Wed, 12 Oct 2016 10:50:23 -0400 Received: from [192.168.1.2] ([78.49.9.22]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0Lba5z-1bA1k50SDL-00lCzG; Wed, 12 Oct 2016 16:50:14 +0200 Subject: [PATCH 12/34] [media] DaVinci-VPBE: Delete an unnecessary variable initialisation in vpbe_set_output() To: linux-media@vger.kernel.org, Hans Verkuil , "Lad, Prabhakar" , Mauro Carvalho Chehab References: Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <24adf0d8-1221-6c1e-f468-05a26d320a74@users.sourceforge.net> Date: Wed, 12 Oct 2016 16:50:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:eB4jHB8gDta9PpeHrwgHQH10qn96hiRzzKGZt2gG82hL4V7Ga9o DiQJ5L+UuLA3GlU270i5w/j3FCg0HY68R0k9Cj/IPri1vf0+9p0CtFw+1TmsmmuL5ob5FKn HI1D3PV+TvZK8n3qbY2LjOOTdLrcPIF26leCMeoITV0oqPBG6tCP+iZeVI1QIxw/69imF4o N4nu+NoDoRcZCi8ne3mhw== X-UI-Out-Filterresults: notjunk:1; V01:K0:oo9GAFnrft4=:xdMlixucWVplsRlrCvfMaG cFZqQcmaRgLrpjDdjJUNFHNbL5UhGByiLXkjy1hV+2A1jxo1gpMmbkl0tHi3WDwDGdx0UeNqk k2G06xWw2Cl4fHhh5UbkoZM46aQwCFtsWlcm3b4VOPiGQHxIeiWxMqXunjOjIVVtRlYKHvds4 NeeIzeApzK/5YT/uyOBKGF0K9eumT1O1HF12W4z1CDFh0KIN381Qxnks9+dB+W463w1RxFjfj 7RrGb2J1ZeKZCSmolDzZmDHX93q43nTapIGXD+zrPuq9tvc1cnWqMdigPd76ITp+1/5g307v9 qQfPjo9+xPNP34HwbeRMMkjgDYOKnImSIIlQDbNVewSJEcv5kIKbD0szQD5tXMcW66Dq53RmR 1EXSh7oP3sc8AZkZ0H5LwXuVy+314CwKG+HaL0X47kVQc7O+vgJCFoeW0UNxOuxwD87ziVdQd CxSK1bf9za2Cu283DhJAdcTp51+FkIcaKM2+1m4F7EcWmXxSbkfwTSqOUt8IK0aH2l7B7DBO/ qnN9TCyNiSIAQFoHNkDGLSv62oiYXmHhhE2qYOTVQu/oKTX9U8IQTtDmSmZgsZdGSvZvcdKHr /NDEnNGKxOxZZDkVMSpVP71cb1pWnYcJVpZv4/VPzBjX1r6tpH+XK10YiuhXIKOB8ynH6cs+i JSKK30hD57AF0uYR6n//mMiqKY3Iud7OF7y68eKvtz/JN4tU9NoAv6cEsyvjX2kbXgb65qs8a 1gG6hyxdEzBeRsxTlXs6XNqEi4j5rxptEtFTJBf40IwzCSfL93ZEVmeByHncJFAU+HgdKdUjX 6Mmw1Uo Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 12 Oct 2016 10:16:23 +0200 The local variable "ret" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/platform/davinci/vpbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index e68a792..b2c5d8f 100644 --- a/drivers/media/platform/davinci/vpbe.c +++ b/drivers/media/platform/davinci/vpbe.c @@ -229,7 +229,7 @@ static int vpbe_set_output(struct vpbe_device *vpbe_dev, int index) struct venc_platform_data *venc_device = vpbe_dev->venc_device; int enc_out_index; int sd_index; - int ret = 0; + int ret; if (index >= cfg->num_outputs) return -EINVAL;