From patchwork Sun Sep 17 20:23:12 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: 9955083 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 ADB146028A for ; Sun, 17 Sep 2017 20:23:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4A7128969 for ; Sun, 17 Sep 2017 20:23:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99609289B0; Sun, 17 Sep 2017 20:23:52 +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 64F1828969 for ; Sun, 17 Sep 2017 20:23:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861AbdIQUXk (ORCPT ); Sun, 17 Sep 2017 16:23:40 -0400 Received: from mout.web.de ([217.72.192.78]:55930 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751476AbdIQUXj (ORCPT ); Sun, 17 Sep 2017 16:23:39 -0400 Received: from [192.168.1.2] ([77.181.201.34]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M9ojk-1dihjO3KvY-00B19A; Sun, 17 Sep 2017 22:23:14 +0200 Subject: [PATCH 7/8] [media] cx231xx: Delete an unnecessary variable initialisation in read_eeprom() From: SF Markus Elfring To: linux-media@vger.kernel.org, Bhumika Goyal , Hans Verkuil , Johan Hovold , Julia Lawall , Matthias Schwarzott , Mauro Carvalho Chehab , Oleh Kravchenko , Peter Rosin , Sakari Ailus Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <3c6d0990-b341-9359-94ef-e6cb74f94a5b@users.sourceforge.net> Date: Sun, 17 Sep 2017 22:23:12 +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:kiz41w3lehXdfqmDLpHcNp4YHpfKjM/+EgG3eFXAm8crEDBAXCX mA8D/KaZY9CDf4a1eOCsyHCXsdagSh+WU4wqtyM1OhpLmPbkcOhePN+qPhIi7CxxTdHeU6M fmL5nfa/EHQ2C2P4erydPEWQG6wFdHMfvKEhMsaYqgeMeXkn3m6y6PiqXiHg2nrqAk1EoXr ZMg31hJAvUEAvg/Wdttpw== X-UI-Out-Filterresults: notjunk:1; V01:K0:203Cxy+Oy0I=:7lzuK+HvW2JAo7i+xxpHdu XlcZ2D23Khbc5O/c7j/08KZChUQvboWrka7vvmkHn3GUWX4M00/zcw3RYmbGJEv2bLH3LPoGR aZ1ZzDZBviuN0n38ajzJh76yCaQf5ZXzRuMOCkmrVkDGeioQV0xlIP2Pl5BoqdF3IsxhrDDZu gUus+kPuciA8gyr5k/t7AnapTVHpXuBjkYVJTMKeAOSxpkFDJw1+Mhl8V3isJcWiLKoONzKDC 2IwvZtQb8lwNkSNgcjPaLgWXzVKFDfuZZQK38oOM99/jK6o2rj220XRMMnwkZq1ULqvJJpLTH /q1sZWFme0lsELeP5G2SfTsSYvhfCuQ0Nd2EkjZnU/f1SZG42jf+fVJp4Ur75mkQNQ9NJYJ+5 YJP0a0+fj93HJlYV9vE2rqXP1J0WZeJKjeACUcACmfjpBxPoWtf63zoEgjNrSs783bIijR+s2 veZUcZV7j4eqA9OU6cIOXk6x+v73epqly/S5CGz7h1Y6J52goLdRVZ7wK7RCSQMZW+hztsknV 4VwM7onsvaQoL6FJtHEBiDlU4BG0Ka4rAfY4DDR6UK4rFAlE1lTe9VrupqyQwcb2C6MKtGV1d vXN4g3WIhEPVGTvVvYhKUd+iT0DBeIL4CD0qATbT2QIS2ZRk1xqgrBFOanVOdIEp3YdYQl0i+ vpOoSohf+227PiHexx8uIq7Ty3oilBS7eXZwYwbfI7YjyMqPdg0Agmz+EbU+1CjFT8cByX+RW vTJrPBD+k9Menh2cWWXIzJWY8f6B1jOIUSBcVPAB8ejpd0JPhc35VKmbLV1LvxEYRHL7NIHBn 8NYAsFcun9KtCvirf+mOSSldPz5geTtuUTgMobBTgE+HvuNBLc= 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, 17 Sep 2017 20:28:00 +0200 The local variable "ret" 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/usb/cx231xx/cx231xx-cards.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c index 04c0734aee79..69fdd507fa92 100644 --- a/drivers/media/usb/cx231xx/cx231xx-cards.c +++ b/drivers/media/usb/cx231xx/cx231xx-cards.c @@ -1106,6 +1106,6 @@ static void cx231xx_config_tuner(struct cx231xx *dev) static int read_eeprom(struct cx231xx *dev, struct i2c_client *client, u8 *eedata, int len) { - int ret = 0; + int ret; u8 start_offset = 0; int len_todo = len;