From patchwork Wed Oct 12 15:08:32 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: 9373417 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 C23DC607FD for ; Wed, 12 Oct 2016 15:15:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B457C29384 for ; Wed, 12 Oct 2016 15:15:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6E84293DD; Wed, 12 Oct 2016 15:15:59 +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 484E229384 for ; Wed, 12 Oct 2016 15:15:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755570AbcJLPPf (ORCPT ); Wed, 12 Oct 2016 11:15:35 -0400 Received: from mout.web.de ([212.227.15.14]:50255 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755556AbcJLPP3 (ORCPT ); Wed, 12 Oct 2016 11:15:29 -0400 Received: from [192.168.1.2] ([78.49.9.22]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MJZLX-1brsJ12Xdb-0038E9; Wed, 12 Oct 2016 17:08:32 +0200 Subject: [PATCH 29/34] [media] DaVinci-VPIF-Capture: 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: <9103b007-6abe-06e0-397b-28cf70c0885f@users.sourceforge.net> Date: Wed, 12 Oct 2016 17:08:32 +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:GVs+m68mr6GZiqYBKP63OewH59/EdyUjPkBlPoUjz+vn7GgbGAv ZK98a0zitmqkEPeHTcObMRY1Hd2Phch2XQrX38OtsmqRooD66PnsUsIkMgXJzMJtu6QTq7v 0PkLjhDA6K9/gc8wvUlNFKdTRLc8NtEsawMgYjwPZ1krBNnUW/8ysiqyeVgMkIsetTE+HLZ HpGfgtBaaB6aD9jxUcMYg== X-UI-Out-Filterresults: notjunk:1; V01:K0:i1mt6giEqlg=:q2Nc7qBkzk++KSLUVhWcak tQmYSCi2TJ5tw79iDB5CjDEJhO1z2uTVeQy8Jlq6TuGF+pLYJiJvELjJs7at/3EXX7GDXdQql D2JLEAQBbU0tAwz4DWVlNnW3vtUXwuGt9lEnXNx6f3q2kUfWyhH3Ad33TQ455dWUVLqlPRIsD 0E/4RW7thCRM5hZZcSlZQBAGyHhQepePIVpnxdxiMHi52H7i+lZEftubmHreE4i57O2rNjVSi 5J91nKB4Zv4Z8H1OADVNvQyAzA0hUnK4qpjT2eKLFgzjwfgqhCpyxY0Y0jIYMCiAhf9T014px RzePx6Ts9wAEX8Hye0FkeAGGsttjK8qiMRnEPOEZrH3UHoSb7ChQnGVhpUsZ/BeZjq3kegB6V 6msjdjGcdYebwA/wHfHnJ0ab07lHIBIM7amicJ96nIfneKPgLsROerhWsKRAXFbNdRVa0nLR6 T8gO0kKIfqgWnpvEu3NZf2y9bL7zprXsI3MlaVebCJy19FyBrWIRdrC91RvfZ8EJXT5YEDdSz 84FB6TRU7JK72nm2Ucef/2abhxp1Hmcy10p/KzgAKLrr4eHMkhh5SU1UiiDTeyRfg/7Z1X0ax BaMZ6Td1ISiiytl+kpFJAdr2Rn4fitl8wJuVPvgxRxz9SkhXGPQSXn6LoI5rzBwIlr6Y2BgM+ Jx2bRxvEVXdBRvD9Evw2hhgPa2T+u7iaFPrQumfUdeedEJ5s684N0U2/5xLW1yQeVvq2LSPG3 em4cauKr/+UbmXgpT+C1HFtEYYYOhGcPRo4OKsKc9HYERXAsY/7QVl2EgtCat+koC3sP0iXMg /v4sl0e 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:25:08 +0200 The local variable "channel_id" 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 4197ca4..d3e2235 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -375,7 +375,7 @@ static irqreturn_t vpif_channel_isr(int irq, void *dev_id) struct vpif_device *dev = &vpif_obj; struct common_obj *common; struct channel_obj *ch; - int channel_id = 0; + int channel_id; int fid = -1, i; channel_id = *(int *)(dev_id);