From patchwork Wed Aug 30 07:23:13 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: 9928811 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 DDED6603B4 for ; Wed, 30 Aug 2017 07:24:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE52B27F10 for ; Wed, 30 Aug 2017 07:24:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0BB526247; Wed, 30 Aug 2017 07:24:22 +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 7CF6B204C2 for ; Wed, 30 Aug 2017 07:24:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751340AbdH3HXU (ORCPT ); Wed, 30 Aug 2017 03:23:20 -0400 Received: from mout.web.de ([217.72.192.78]:60955 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751039AbdH3HXS (ORCPT ); Wed, 30 Aug 2017 03:23:18 -0400 Received: from [192.168.1.2] ([77.182.113.36]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LsQPU-1dOne601vM-01220r; Wed, 30 Aug 2017 09:23:14 +0200 Subject: [PATCH 5/6] [media] cx24116: Delete an unnecessary variable initialisation in cx24116_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: <86ad8f11-90b6-4930-8243-ab2e0e0c7650@users.sourceforge.net> Date: Wed, 30 Aug 2017 09:23:13 +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:8uHSErcXGmr4kkgKEAbxdfARMIlUGh6cgY+7S34ZY29jqIL1c/e 6u8CoBUVQgLi/FgUoz2VBF/AfbsTcgylqTbsNlLahNZa92bh/R4SCMEZFST0HF7ZsUmMlgD tbE50Nzp6JyWGlyRUDJldPG9geFYoVWANKEnXl5q7b+QGcMgp0GGquzqMuWG1eOjOvUSoWx 8VXGABqkjsruJzhb7ydmA== X-UI-Out-Filterresults: notjunk:1; V01:K0:sbE5Fxw4tgQ=:iUajbornMbIdeZwHmxppSP Gg5/CZ6uj4PcryRoc2n7/7/upUQTT64lQ7Iix0O5hw0BkH08RRf2SsvYKW7P2xoZkwBZDzMUf aAqLAifPamqd5tc9xaf2TyObu1KmflOSEKk4DmsDxkAPzEVRDNi4dlKIsGGSfKZzKncI3K/Pi znX3sd/tyhwBj+K3RWbwqCk9WbW2pZRhGevWBOXVbTRZL/nq2lFn6mxdM4N2or0L9rZHgARz4 vz4WGN3P8f7gLh2PSaY9jPUiI3GL7qOuv0USHwZMfDCNJZNa7U2pu0Kd8AvlId0wbVch9eQfQ FavV7oTSir7WiuGMq+rL0E1v484AeyCuts2c2IH9xl8OkdD52XeDlrMPuZ+fx/nbkPf5RcjXD W7d6N6uwG+h12JKJhm0b1TnI9N6QQwdcpelRoZgrCYzck9hTFFduBhvgl/D3p5eEEnsY9r31n JoIg7HUglpC3wvcZTTDJ7mnBWde2bTpk3lKg5G6B5J1i/8q4jz1Sqgrsi+C6sAtpzfgnWvpGP 3v/Q5zGtEldh4mTwediVK3D6G2FM5LgkUNSyzpYVB6frjsCfmsgRQR730OvjRsCgaKqZSsz+N zUuzPYSqcNTXX/OWMEH61fpMWbP8WMYX136qZU/DRL8lQ1TXz49wsUe2LklBUXCXmf8r1dj8l j2Ak/XNGYV5/My7eSsuoLRcq/SFDwT0EgoeX0c8W2CXth1ICxS2QgtJILRJAJ7cDbOZhc4uge FAwC0fc1hEV+xMHpcY8aZORW+ajjhvTsKzlS/L5k/g75+zt330l5t/fGNP6oDOpadQLClLCdc DKxbXfyxO9gNJ8ubn+y20foS6dPTRpUOQrmnmtf7ndBOT7FE8Y= 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 08:30:12 +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/cx24116.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/cx24116.c b/drivers/media/dvb-frontends/cx24116.c index 74d610207bf2..902a60d2e1b5 100644 --- a/drivers/media/dvb-frontends/cx24116.c +++ b/drivers/media/dvb-frontends/cx24116.c @@ -1117,7 +1117,7 @@ static const struct dvb_frontend_ops cx24116_ops; struct dvb_frontend *cx24116_attach(const struct cx24116_config *config, struct i2c_adapter *i2c) { - struct cx24116_state *state = NULL; + struct cx24116_state *state; int ret; dprintk("%s\n", __func__);