From patchwork Wed Aug 30 20:23:15 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: 9930731 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 6BD9E603B4 for ; Wed, 30 Aug 2017 20:24:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F8EB28740 for ; Wed, 30 Aug 2017 20:24:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 538752878E; Wed, 30 Aug 2017 20:24:29 +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 0CFF528743 for ; Wed, 30 Aug 2017 20:24:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751521AbdH3UXX (ORCPT ); Wed, 30 Aug 2017 16:23:23 -0400 Received: from mout.web.de ([212.227.17.11]:63278 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416AbdH3UXV (ORCPT ); Wed, 30 Aug 2017 16:23:21 -0400 Received: from [192.168.1.2] ([77.182.113.36]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LlniO-1dE5kS07pA-00ZRNt; Wed, 30 Aug 2017 22:23:16 +0200 Subject: [PATCH 3/4] [media] ds3000: Delete an unnecessary variable initialisation in ds3000_attach() From: SF Markus Elfring To: linux-media@vger.kernel.org, Mauro Carvalho Chehab , Max Kellermann Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Wed, 30 Aug 2017 22:23:15 +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:7rV5UyHhUC61VAvHqg+1iFPuaIQBECh+pJ+5bwG8VKII/E2jabW Itei6ugt+bUFI7Cw7LlMEEu9ItyXCGbvRB0fqLg0r997p9sMa4WKRKfcGY5iWyyOnUpksw+ 1VKw9Wzu3VuRKLeWRgNVkWH1hsP4ZRlD7iSJTSBF8vzLgtSRJOpuMrHzcnIe9m1Mth14NtG upVkgJ3k52jLhoCddqd5g== X-UI-Out-Filterresults: notjunk:1; V01:K0:uz56a9m+SPc=:rTRb8KLlcUQbWlON6FROWM 6GjVaqnyjp3A0tOHBoWGGfiwRFrAf/FGnHAIHu39IKlPHcLhdpOsC9aFww/ZJ6cz2Pxemhu6z 8O9Jgt+D5PDst+gEPEeUI5V6jGuZ4AgD6ZDhp+AaqJemDGKXEOxk45PUyd1k/PPP8e/pEVoxo EYtD0PuhP+d+Ic040cKfcbY8rPRO6ij10S3zSf7jPZTxr0Y8VbPuXWlsiprLndEhHTIpN0Co9 N38pWsOjYD7HvrdD1CQmK4NpepybVL7pRPX+l6qeJEDBKcIkjsLhfi0ekpQj8qgF3uD5umrkF tPWrNiUZr/nDeY8iTGx36RBRHFS1i1WyWg45RyuyIesrI8fPLz6pODAKqyF8Ml6XHoy5Ga/TX d0cL2WZ5Q5UO5KBNQpNegVHUejBy/pRUdH409BSdSk31e5mQqkNoRGjfS/YEIVikx7cJo0hr1 xMja+wSrf/eDYcwdQuV7EmS/MryDjpOaEOKnuZdLHrDxVAZT7gMnuRDyOisH7wfkGvcxBC55+ n9xiZ18phb72NrlWJ6CxnVZjqrbqmAT9IKEsNJVyUXidhMOrcpNCX37pk01JQJ7Q+53D5riyv 5WK6z3VByzTNIQ8Sic8C35gb5O0sfwgFW8W3U+mirfCUIWthFIemyPqfyLZAX9y/Fq2i+uNrv vwmkMgC2MJ1ir5xUYdBBxflkleIFllZviLHAVv1Ko1OGvgF7lz5PhYPKM3/f10K7R4rj6BVUV yt2nctTBHV4a5A5ubyI5/su4GISCEWb0bPRZVUJGTanCK7TtJdd3EzQ4X13yquhrx/ExXOlEq /pdalK+JOJSMFNBLG3di4Sd4TYeNcpySBksiDa20fuS0AwhWDg= 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: Wed, 30 Aug 2017 21:51:26 +0200 The variable "state" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/dvb-frontends/ds3000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/ds3000.c b/drivers/media/dvb-frontends/ds3000.c index 988a464de3e9..3e347d03acb3 100644 --- a/drivers/media/dvb-frontends/ds3000.c +++ b/drivers/media/dvb-frontends/ds3000.c @@ -833,7 +833,7 @@ static const struct dvb_frontend_ops ds3000_ops; struct dvb_frontend *ds3000_attach(const struct ds3000_config *config, struct i2c_adapter *i2c) { - struct ds3000_state *state = NULL; + struct ds3000_state *state; int ret; dprintk("%s\n", __func__);