From patchwork Thu Oct 13 16:27:22 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: 9375415 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 404F16075E for ; Thu, 13 Oct 2016 16:34:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F1312A16A for ; Thu, 13 Oct 2016 16:34:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 209A42A16D; Thu, 13 Oct 2016 16:34:33 +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 B8AA32A16A for ; Thu, 13 Oct 2016 16:34:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756853AbcJMQ2q (ORCPT ); Thu, 13 Oct 2016 12:28:46 -0400 Received: from mout.web.de ([212.227.15.14]:56355 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756621AbcJMQ2S (ORCPT ); Thu, 13 Oct 2016 12:28:18 -0400 Received: from [192.168.1.2] ([77.182.72.22]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0MfqSa-1bXff51cyy-00NDfg; Thu, 13 Oct 2016 18:27:23 +0200 Subject: [PATCH 06/18] [media] RedRat3: Delete an unnecessary variable initialisation in redrat3_get_firmware_rev() To: linux-media@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab , Sean Young , Wolfram Sang References: <566ABCD9.1060404@users.sourceforge.net> <81cef537-4ad0-3a74-8bde-94707dcd03f4@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <4c2360b8-b4c7-f1b8-480f-d3002eb2155e@users.sourceforge.net> Date: Thu, 13 Oct 2016 18:27:22 +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: <81cef537-4ad0-3a74-8bde-94707dcd03f4@users.sourceforge.net> X-Provags-ID: V03:K0:+IFKNda0Gc5f80k2fW9mR3De+ZZlRbnCsXBe2gTL18o0sVtv1fD KxS+oQ8sELHABw8ykHoM4Z8Pq2JF0lNw0uVTr0KlZEgJv1cXn1LyRGzKd8SNV1+xuD8HiRo qJ1B4txXY1OXR6QG1uiveJnYJj2psHz2R5USu6MmPr/IUKcZ+KyB4K2ogDcB0uhVDctm1c5 4YhJAHeFSqo73X1lkW5mA== X-UI-Out-Filterresults: notjunk:1; V01:K0:1PAubVrQfoU=:Juuf0Or1xv+V7JUI2zqKUM nw1peqrBeCXqzBPdnpN3P7Po7T246RswiS64wUwsd61FaJ3x4KaRaHcf9vCXoEDgfJCrAR77r aXHBW6kun/0OANZwvo1Fww6jkK7pODlIo1VfjVfshXMQxoZff1G8+TdkMjwqHSAxKb/vsiB5z 4ukmL/wXtMZUXnCB7+i4WZCBdW+juYJT1lwI3Ad9wDQLrF72WObsymhIznHeJVOKPCoEssCr6 yQGAA7XFFmPxLHqJ1V15Tmss40RCJzZ9j8zxjCGSUzbbM0R0J/IfF8FOwBaD4pHKfSaHEwWCs BDo9dbsbERXsDtak9vBHT5zryVQouoDN1PLvVzWeHzJPzBRopZuj5CIgi7w+tRVSI9/QMNABE pj/DJ2L9X7AZPWjHdXo2ixTc432LN+7Akl4fEodm1yJfhu2kRyw5uEnmFUS6B1a/evza/jY3s uFRCt1pbrOoreIkfZs5YSrd/82HBfRbXccFvVYsSKPkL1gFBFFXrbVUGEPLfmPtEK654b0a9k TbvFnqJW8RllV9cx9+OaeaFwLvjqew3OQLNWRZ6j0yJrIxDnR6hqI3+7teaEvUBirqmGj2+VV /Pff+m9xeTf8ksSvge6gZuVMseIKAMdfHpqGy5JO1DTzQbDIZIBhbZBvkycNWO/OPDGj+cdz/ kbYlL0uUBy3XGeTPE5Gy7Fh/Kc/gtsXqT1SBZbi9woQH5ojauNYrsZaSDTn2PFHv557tzueRC kANNoMMQnhCmS8HLI9ohLWKk7QOGCicVDJfreLCe8gWcU/yK2HEdbuTNomyrvLY/HQWMtdfVm 6xXqHmP 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: Thu, 13 Oct 2016 13:21:55 +0200 The local variable "rc" 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/rc/redrat3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c index 2e31c18..0ac96a4 100644 --- a/drivers/media/rc/redrat3.c +++ b/drivers/media/rc/redrat3.c @@ -542,7 +542,7 @@ static void redrat3_reset(struct redrat3_dev *rr3) static void redrat3_get_firmware_rev(struct redrat3_dev *rr3) { - int rc = 0; + int rc; char *buffer; buffer = kcalloc(RR3_FW_VERSION_LEN + 1, sizeof(*buffer), GFP_KERNEL);