From patchwork Sat Sep 16 13:39:48 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: 9954321 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 BB2B760352 for ; Sat, 16 Sep 2017 13:40:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD74E288BC for ; Sat, 16 Sep 2017 13:40:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A24CE28B16; Sat, 16 Sep 2017 13:40:18 +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 4BC2F28B13 for ; Sat, 16 Sep 2017 13:40:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751352AbdIPNj5 (ORCPT ); Sat, 16 Sep 2017 09:39:57 -0400 Received: from mout.web.de ([212.227.15.14]:61674 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbdIPNjz (ORCPT ); Sat, 16 Sep 2017 09:39:55 -0400 Received: from [192.168.1.2] ([78.48.47.134]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LfReL-1d4S6939Zp-00p6Ia; Sat, 16 Sep 2017 15:39:49 +0200 Subject: [PATCH 3/3] [media] si470x: Delete an unnecessary variable initialisation in si470x_usb_driver_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <3484e97b-4716-430c-b241-204c9364ddc3@users.sourceforge.net> Date: Sat, 16 Sep 2017 15:39:48 +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:AqTS9qfcopVDFGYDKOxw5cA1bNfInNK3kTgVKZDtHU3/Oz9qBW0 ybCRQrlcYE8FNgYiE2XMT2FRQZ2Poi43VEaqTTlXlBu5j0FjgXvI4VZC7rb8DaVqlliCQRl Kl98xsa5v2niK9NF4Kpg+emglOlmNCnak2yzGITi1QcLSN44BrElDCaes9eKXkw/ANQgjA7 vE6hcZCT0D8+qf1IFhIyA== X-UI-Out-Filterresults: notjunk:1; V01:K0:4ijipRnI5Uw=:VxVOy8PVSHppz1q1DZL/BC z+Yz5DnsDlN4c9HYZlIOAHtsNEKtBaB16Erj02KgkfN//IP0BrmaA+jCJPEAyP+LFCtPDkGmd Vcg4P87J52mcvIKAyd8Q79CrWiCWpAawC8MOyz6oQkqqvy6hX2fLXMdWVWcvEuFtWM5aP8wc3 URga4N4KcnGdgJRURJFR74eTE9nNxF2ojkbOLzjmO19f1mhfg6fcW//jPWF2kqiRaEMIrEptH A+HF+xJRHWh3czsYcQu0MmbJF7v5/LItygTaJdUPcMR645dnz8BVd+Kjva1/pNLYh4q/2BMTn ZE9KyR6VvTCC7FLpMQ7wtOh3cDXqvYUEt5nNNreBIIlQRPRmUfnXDnzE2A+5cH6C3yFwdYevl q+AhY9etmBjLHZQCkAJzNH1FSVyZfvzx7xzM3TcUiXXgMWbfuJAaiBeF/lkWhiA/qgJO//mbE 6tq315MitYae6gZFt5/FdxXXZocwD3s2JOpzVEC+pwYL9LBPZMQnOtMqRZ0u58B0sspPSSaoE VLQz//MJYc5qCrD1brJmIdIWK60cxpVhSsVMdEGPyP6Tt3nbmZnLzbqK0jILoRvXHYrAALIYL 0SQtn/2G0AlBubvWiUYSNDHE+lmLi88cWr5HcspOQirZkXBxzU9KMp4RbW0kzO4SglzI/gozf BFZtaS3A2UXIprAKETkRA3gLdFU/CeD12oZoI1g+pp2vJHRroZUhSMlgpXf6wo9+8CZd9dXfc 5bseBV+UXFUmFXrCCU1CRwG4xT/z5kjkfhqtFlwJLDQx3IacnFA4CTI76nWwy+z4LtqmGyyYX CP1UT3k32m/mpbwHzuYd9gStSYV4VZBqWIXOcAn0QCJhf8Raeo= 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: Sat, 16 Sep 2017 15:08:39 +0200 The variable "retval" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/radio/si470x/radio-si470x-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/radio/si470x/radio-si470x-usb.c b/drivers/media/radio/si470x/radio-si470x-usb.c index 6fc6e8235f20..ae30e3da9d13 100644 --- a/drivers/media/radio/si470x/radio-si470x-usb.c +++ b/drivers/media/radio/si470x/radio-si470x-usb.c @@ -578,6 +578,6 @@ static int si470x_usb_driver_probe(struct usb_interface *intf, struct si470x_device *radio; struct usb_host_interface *iface_desc; struct usb_endpoint_descriptor *endpoint; - int i, int_end_size, retval = 0; + int i, int_end_size, retval; unsigned char version_warning = 0;