From patchwork Sun Sep 24 10:30:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9967879 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 6F7A16020C for ; Sun, 24 Sep 2017 10:31:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 604E628B94 for ; Sun, 24 Sep 2017 10:31:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53A4528D36; Sun, 24 Sep 2017 10:31:03 +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=unavailable 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 0DF5D28B94 for ; Sun, 24 Sep 2017 10:31:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751902AbdIXKat (ORCPT ); Sun, 24 Sep 2017 06:30:49 -0400 Received: from mout.web.de ([212.227.15.3]:50311 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbdIXKas (ORCPT ); Sun, 24 Sep 2017 06:30:48 -0400 Received: from [192.168.1.2] ([78.48.160.4]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M1XE9-1d77Ho3A77-00tQQY; Sun, 24 Sep 2017 12:30:37 +0200 Subject: [PATCH 5/6] [media] omap_vout: Delete an unnecessary variable initialisation in omap_vout_open() From: SF Markus Elfring To: linux-media@vger.kernel.org, Hans Verkuil , Jan Kara , Lorenzo Stoakes , Mauro Carvalho Chehab , Michal Hocko , Muralidharan Karicheri Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <63bf382e-733f-2060-a4c8-e9863a38f3b7@users.sourceforge.net> Date: Sun, 24 Sep 2017 12:30:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:DSpM1sFlr0twvkbxbN1xNu1IAMN+AhLokmYn34iBB/M0aeXhMTh G5LJ5Ks9938ao1ETuq6jhhoQWXEY4wuuV/V6ZBppcFQJceNhGDVUU061uKWqQlIV9jc41s3 od5ga+oN/wefbDjyRJb9NBGsnkBFC3zt9IHHwGfRHVCH3Iqd1ejELFK5FKxoEINmGUvxnqT ZU/UWBYRT4ESrdOeZIxEA== X-UI-Out-Filterresults: notjunk:1; V01:K0:O/RiMOQoovQ=:h6Nw8bL1lgzrgXm5XtMzfF Slb1TOIJc37o9Lf32uzeMKCDs+J3JwN2RyXeeR4wGLDMf7e6Q7liXrjgeIrEEWXB8Awn/yBdr WPx/CYSIV3gisuANG1l5rdnYHVc6GXExIvMD/txktcoNDD7ZKD7Xxq+pZ61BbzHWqwB1b7jKn JG/Jqx5l4jE2xt++hc2gmECD5SNequhGToTHtjUKuSIOiHKAshgIntEbCkwrax3QMrHyxOVDr EDU9eSqQVHqZTFZd9baAW0t+as1ASruhpw87V90pQom9/MEzxaebC1oOIETznl8/mdWtEYnTk INfkMQiKmbkIu69JpCtm2sTaAdolJ/dGRUI3a+gm97UN7Bff8x1TaaiMu0ntU+cniLQUEClFv wIa8RJGHu+xUJ5oK5rmrALc/OvXjIHmQHLuOSys9sK2LMFUbaTZUAwW8Bn61PEUrvT8U0pzp/ yGC2P0CKjO+TjjYHpWS7YC4bld0uKGdm5BsRiTb4B1y9hgLg8Gw7rr7pesYFK/Z/zq4/qisF2 p9iEdL+GmSP4U33aDZHeB4XhNxR7Ohmmiod9g96nutZPY6iImh9KfqDSFRvgMJkyJRHlEl0dC qYm29BbkrgZmtSIMDpp+XusY/BXwajG1Ux8j3FohLjvRE/80BWic7YtSNecfdARiftN/+6dUe edrp8A++wjlAinmUL/o/EL6HurR7IRGDB9AR8drZwaRugEwE77zsYYYc2r8zAO8QiVtqNrAiv 4RJ/9osbPySiX9rNEt/FRaybnYdxJN7bS7We8bcbcoDF44ff3CzPjMHdyaAPnQ9OoL+Cyc172 ULg42lM6e4HGk666JN5Z+/eeQUSJbXmkVWJgbAPIyFmG0MDsj4= 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: Sun, 24 Sep 2017 11:20:11 +0200 The local variable "vout" is reassigned by a statement at the beginning. Thus omit the explicit initialisation. Signed-off-by: Markus Elfring --- drivers/media/platform/omap/omap_vout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index 71b77426271e..f446a37064f4 100644 --- a/drivers/media/platform/omap/omap_vout.c +++ b/drivers/media/platform/omap/omap_vout.c @@ -1001,7 +1001,7 @@ static int omap_vout_release(struct file *file) static int omap_vout_open(struct file *file) { struct videobuf_queue *q; - struct omap_vout_device *vout = NULL; + struct omap_vout_device *vout; vout = video_drvdata(file); if (!vout)