From patchwork Wed Oct 12 15:07:35 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: 9373397 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 DA4F860865 for ; Wed, 12 Oct 2016 15:07:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC02B29DC2 for ; Wed, 12 Oct 2016 15:07:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0A9529DCE; Wed, 12 Oct 2016 15:07:56 +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 3484729DC7 for ; Wed, 12 Oct 2016 15:07:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755340AbcJLPHy (ORCPT ); Wed, 12 Oct 2016 11:07:54 -0400 Received: from mout.web.de ([212.227.15.14]:54691 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755170AbcJLPHr (ORCPT ); Wed, 12 Oct 2016 11:07:47 -0400 Received: from [192.168.1.2] ([78.49.9.22]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0LhvUI-1b7Y6H2ueo-00n6bd; Wed, 12 Oct 2016 17:07:35 +0200 Subject: [PATCH 28/34] [media] DaVinci-VPIF-Capture: Delete an unnecessary variable initialisation in vpif_querystd() 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: <2eb81f4c-1796-a10d-cade-f9906df2e816@users.sourceforge.net> Date: Wed, 12 Oct 2016 17:07:35 +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:9rFW7ml4LAPh/AxQSt1OB4fZcXbx6qQjaXx634Us3PcmxHOGAV0 wWCLBVGld1BrPqjQRCjwgpYkxqFFVr713vUruweNSK/Rf0/ALAp0YOBpTwy0/p81HNrLRhG bPbw+g9/uB5Om/xVu/3EoZfuzUXa5NCfwTkrqvfW8Oxcwm5/jQoJclxvVGifnICYmudXRJf PzUVPUeW5Jl9OXDCvMW2Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:PMR86c1T4Xk=:/+3KoCuYx6IhtyaFztx3C9 I7NAkZXpTdxByhHDq14l8azX6aitZO49nFI0OqBBVY3Ls9UpxT5B/d5oHON1M/Ktz2tEVnjw9 61Tqsn4WqDxjSiwQaTJblhZkaNm8EqMeXk0CSw9oKrrc2vOnGzobn+LgWiVunGHjRAfjusasr 30KLcOGNHD+fup5FOZvfELpYqiBoAjdjzhgyQelEXAr4vNI+026mCRJJ6xbVtcHTLG9/4RVNU x+tQJpWEFuUzE62eVcxsEdbA5t4skQPw1VURogg7CpdxAwngN4t1VXTLTXS+hCwAKVFVrwTTr OwdkUJUUkSY4BBLRbg1ySeagLgxJwmCvBfk7rQm5kCRn8k9k7jDmFmmGVZKHDjsFguX5oCrNk sbey60pJH5Guzu5ngyzza+pKGfs/r2Yhs5oEuNWb4oyNxaG/DqqyByli9vqkNQRJWqN67lk2l Fgcl72Gra+xaXkx9n+ZQ4Ug9QwbyOAqGjlZYiGsDYtMkr/y1AaxqIv6Zb4Q9wj9KYC8C3bGXy SKSbcCn/SBts0SrnQQh63ISL5eDIBDkfzpl5ellTffcS+Amtx3mPDR4K1d61DLp3ja4qdC6ki wFOmWglbozGtfpATQeO8BcpGv5M6csi6PXhiWQjnl1e2+gfE9r7p4sv+ogHK5IH6MBopTPOm8 XazM/dpjhVDfhen/lHL2BGLlMjHtMnM12XB2EizbELbnqZb2jfrMutHcOpM/TtGjtcCJ91jDV EUHHBcryPCslSnFxtOWmVzCKb2C1nNQyI1DKeOT1HaD8GyIzX6vju/Evyo9t32yHAJ9OElhdk D9pjOmj 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 15:22:45 +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/vpif_capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c index d9fc591..4197ca4 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -731,7 +731,7 @@ static int vpif_querystd(struct file *file, void *priv, v4l2_std_id *std_id) { struct video_device *vdev = video_devdata(file); struct channel_obj *ch = video_get_drvdata(vdev); - int ret = 0; + int ret; vpif_dbg(2, debug, "vpif_querystd\n");