From patchwork Sun Sep 17 20:19:47 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: 9955071 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 19AB76028A for ; Sun, 17 Sep 2017 20:20:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09C6328B5F for ; Sun, 17 Sep 2017 20:20:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DC6B28B2B; Sun, 17 Sep 2017 20:20:43 +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 DD00A28B19 for ; Sun, 17 Sep 2017 20:20:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751804AbdIQUUX (ORCPT ); Sun, 17 Sep 2017 16:20:23 -0400 Received: from mout.web.de ([212.227.17.12]:57089 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751537AbdIQUUW (ORCPT ); Sun, 17 Sep 2017 16:20:22 -0400 Received: from [192.168.1.2] ([77.181.201.34]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LcPWs-1d9vt22QQ2-00jrE3; Sun, 17 Sep 2017 22:19:50 +0200 Subject: [PATCH 4/8] [media] cx231xx: Delete an unnecessary variable initialisation in dvb_init() 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: <6c6b1d0a-9ff7-18c8-631e-08bf8d59106a@users.sourceforge.net> Date: Sun, 17 Sep 2017 22:19:47 +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:xTYU56bqxrgigsAb1q/7/nEXuxyuoqPOSGt4WUBV4SrhXAAAieC qNzorTU0Ggv5DSv3P161eOC67YyeB1sDFESpO75W8zEWVR7phjAbZtkZ/U7UU5W2GL+Z2SU Q+DrFnMxsFjJufIyOh6gy2EVrCL2mKYNO8XCTXidft5HXtNaGEd2/Dssd/5u6Cw+piWtnsQ NdFZtdnPXoJRhenwtYeXg== X-UI-Out-Filterresults: notjunk:1; V01:K0:3PFT5/T+o3M=:FnMLYbRNgGiyfi/qoiEB6Q UFUO/4e45GY8Vb5Pz/0HqRbuWveeEIPANjhK7c/d8iXPgqLBWJCQliF9Fuh52696j79dNdQ9v Z315o7au6Sg5vqBNMOERcSwGMQx7ktbCcONNMg4lvvjeohVngnVDxVGZzX3CAGKFBtPoE7LXL fpiWc+HMgnmW/tXnpvIyOioBWAyRRwHDXN/q9x6aTWWrdmYdxQ9bfsNaxnckWFJEUS/DosY96 YabB2irDthkP9ftUfyb/cFkfiLZ/+ttDmHDHgMU6BRRlEh4iYz8ZOcdGjRy+ripl58Szu0EFX 5ynYAQ4zdtDMNZ/4mzhcpmQoQvMls3bQQeuWEFN3x1jEL020Bs57zN447z56Xjv/4u4oM96Hq ujcf8Em+UKS3FKJ19xTY04SHO8CvnUMPGHKDX8Xf+2gMkypuLbRrwCfYPHw8ha9VU0T+i45Gg mIYlh/I/VYgdWvdyLeMhJ100G1lGEvVp23ikAe+QPbYGBubVvRPeLHvqez69ay830YlL9z3Z1 nGxkzWO+P3cuv0F1A+n57iNGclgbrsuxzRATME9LnAwGJ8+7kNIahGFx7FV87kY/dWp5VNhWp yfi1+NMYKvJKcVZuKzkGN95EbneKbqlvpmW4BFp40h3sSOSmgUmbt7l/pAW7iwi7e+Eon9RBK 85DoJH9RDbD0VebWN3lSbFwZzZwsK5mNpXmBWvRRgpyCe+/8UDwBFfP56rsDdwroFml8W8LL8 XRSWKRBOyNLZIHQTKztsoWI4DcOKZPNVsQ6uiLL8/06WiBv03+FpbwB6Jh6HghZzuzg4kb64n XRDkYJu+tDHRP0qosF6tPUIjsGJ6wNyUD1e/QWYMJQGv6bjIc4= 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 18:53:16 +0200 The variable "result" 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/usb/cx231xx/cx231xx-dvb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c index 35d98ec948b2..091ec0cf56a6 100644 --- a/drivers/media/usb/cx231xx/cx231xx-dvb.c +++ b/drivers/media/usb/cx231xx/cx231xx-dvb.c @@ -601,6 +601,6 @@ static void unregister_dvb(struct cx231xx_dvb *dvb) static int dvb_init(struct cx231xx *dev) { - int result = 0; + int result; struct cx231xx_dvb *dvb; struct i2c_adapter *tuner_i2c;