From patchwork Wed Oct 12 15:14:45 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: 9373425 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 4F92F608A0 for ; Wed, 12 Oct 2016 15:16:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 410862944A for ; Wed, 12 Oct 2016 15:16:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35FB7294FB; Wed, 12 Oct 2016 15:16:23 +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 CD8E8294FF for ; Wed, 12 Oct 2016 15:16:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933857AbcJLPQR (ORCPT ); Wed, 12 Oct 2016 11:16:17 -0400 Received: from mout.web.de ([212.227.15.3]:52805 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755548AbcJLPP3 (ORCPT ); Wed, 12 Oct 2016 11:15:29 -0400 Received: from [192.168.1.2] ([78.49.9.22]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0Lxf5f-1anxjo26Wp-017Ffv; Wed, 12 Oct 2016 17:14:47 +0200 Subject: [PATCH 33/34] [media] DaVinci-VPIF-Display: Delete an unnecessary variable initialisation in vpif_channel_isr() 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: <4d6bde65-54e8-7887-c9de-61dbf64d1ab9@users.sourceforge.net> Date: Wed, 12 Oct 2016 17:14:45 +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:mxM6H9bqeGQn6wmdTMNxD+EeBk1Tl8DIQ2De8nK4HrYCaR5Rrb7 6jRpA/R04LTpd689y5UfGfnM+F9luMAZVbZT483Of+/DOh0RFHAC9S5e33SbG0S1G1xrHJO mXaAJFHmfUc4F/xwQQWZaVuwtTbhI+KQ5Ua6ZeEskPvwFyCWtniRbraUdNSW/S94cwB0i5V Cm5qYdjYJJ7QPH4kxztUg== X-UI-Out-Filterresults: notjunk:1; V01:K0:CKgtUdW3xzk=:a4HI4Fez652x0MvAu4CcC0 Si2WqOk20nrVgMXwwPRnRlt4bYIf6HKSE9rgNz6r/5P2dJFI+mCsbMlkA0w784+LBggB5nyTI XU8Kza3nctsntUDdeP0uhbh/Nk7oKC7DRU8FV3O5EdJpLNstyQN0Co7zHiGxDIbIlSv24iqer E/lPXbBYyPCK+02kFs3yS02wvH1AkRCU4YIgU5KWpo2pndoZVa1UVASgGMA6BrwslJ7mg7h1E FFy++A0TpbuR1IV+1ApZXoLOGTFBdUSaxclrnNJcrx3Lg58B0L2SIxoCsNSRx1nbFXcQnqvxb 21J9Im29pK+uX1FRai/dFN5fF/J7gcwUI9shBEb+vq9wgMyml4hcjLEmzfz6bdSiwC4Z79SPM Mi10SUetwWHJsyd8loj5mOh0an24FrUNnlMq05huPCtPnjr69n7PsJTjX29L0YtjGrNQ4/rF+ atCITPzawgHf/2zBqjc8IjQLg0IEWkIOJR342pwzVurcTN9wwza2Dawkq0ZgGAIKq4CruZiBH JWruDrT80vftTLuKu33Om/3TgduRWu0dFpy2uZKiyGBTjJOHURJaqMbA2bU+3mHA+NRTYkzEm QN/Yl9tGryt8qtYKuTpXCQg6nvMF94Xj1Mi+s3bjd0wCfT5s8iFlgl0vaxv1ALEtN3BlGL2RS MkNQDgYoiLP3WBLpEeedc0r4agfj7MKJZ2Mp8VxkOckM9FANp8XIlyw6rpEU7vzJDUG8BwSba SzyM8RKEKbGduM0JETL5dYO0I/hg5+jHB59FRJX7ITe/uCxLdKD2BjY3m/6a5rDbu96fBKy1x r8iJ+5o 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:43:12 +0200 The local variable "channel_id" will be reassigned with the following statement at the beginning. Thus omit the explicit initialisation. Signed-off-by: Markus Elfring --- drivers/media/platform/davinci/vpif_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif_display.c index fff1ece..cd44990 100644 --- a/drivers/media/platform/davinci/vpif_display.c +++ b/drivers/media/platform/davinci/vpif_display.c @@ -363,7 +363,7 @@ static irqreturn_t vpif_channel_isr(int irq, void *dev_id) struct channel_obj *ch; struct common_obj *common; int fid = -1, i; - int channel_id = 0; + int channel_id; channel_id = *(int *)(dev_id); if (!vpif_intr_status(channel_id + 2))