From patchwork Tue Sep 26 11:32:26 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: 9971763 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 8B8EE6037F for ; Tue, 26 Sep 2017 11:32:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 894B928E97 for ; Tue, 26 Sep 2017 11:32:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E11528E98; Tue, 26 Sep 2017 11:32:47 +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 3B71C28E94 for ; Tue, 26 Sep 2017 11:32:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968381AbdIZLcf (ORCPT ); Tue, 26 Sep 2017 07:32:35 -0400 Received: from mout.web.de ([212.227.17.11]:65364 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968350AbdIZLcd (ORCPT ); Tue, 26 Sep 2017 07:32:33 -0400 Received: from [192.168.1.2] ([78.54.205.15]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LqlSQ-1dRZp02wJW-00eKCA; Tue, 26 Sep 2017 13:32:28 +0200 Subject: [PATCH 4/6] [media] tda8261: Delete an unnecessary variable initialisation in tda8261_attach() From: SF Markus Elfring To: linux-media@vger.kernel.org, Mauro Carvalho Chehab , Max Kellermann Cc: LKML , kernel-janitors@vger.kernel.org References: <15d74bee-7467-4687-24e1-3501c22f6d75@users.sourceforge.net> Message-ID: Date: Tue, 26 Sep 2017 13:32:26 +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: <15d74bee-7467-4687-24e1-3501c22f6d75@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:Y3hpzBTLVszN1xOygsJYfP1uTGBOsZTjDKbJ0jD4Oas198aeDqS eCQPvpkyYNw6xo6pZLhhgoKorm+O+ImECaKAObueYyH8IExNoihe4xcbThwxps7IGRPBnmi dMgP9N9yZO0q4Y2uzmUQywOUMyRznwI4VeNR1dxFIXYYSpWhOYu6edv33CY66zDuGLH5v6c 98ueSSModhSY+zXYGVTJA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Ddmo0P7A2uU=:/YSdIsM8/5dzAvx9dp/VTr EE3OkwjWt+MIvFIJKvdyy1eMrWZ+IOeSnJKDO5lSTZtImZj9cVDyVCLWnfmYAwU5prZGiul/q rpVmtstVL86ATQ/1wI6G7/3Y5xanVh9zHxD0RbL7XTQTEkxmw9E5+V5UIHLVQfvGiSfvlK2oL 2U/7FTBurdNVoZ/i/o6O+l7jlojZK+BTon/ygm7ZY2tu/xK4s3p6aifhRdHyj/BetqghttOik e2PqonlSrkj8aHhkOdEwCpY+d2u7JFJD0j72PWO48EHRq2P9bjYSo1kfkwMrKny0/kqvdMUsf 7BD4wgJY2xt02VMiw/9ROp3gWYFQFtGpGRuP4NoX9wAJrAef/Qse13MKwFFC/ET6VYDM9V5lS 084HmA4KcdojpNH3UGOeqZ6D8nz1Weksgeby+Wv6EVATFhhfsLuL/t35ZTBQo5yJXIoiKVzRZ nhIBZcvpyuw2l9QroEVwViPiWsK7uInW53a1zp+aMMDj4SWTugeFtq9MyNDjGDI1XECITP6DM R2jw/0u3QJN6F4C/1BTnoR5FqPwDfhKRniOp0W+XqLFOjC9ClfYDKs3No1B3qwhyYjZeLC5OG ex7kpnLGMQradPNki3O0wJAZS11OlDfHrCGw4gYi8lH2Kh2Tuk17q7dWsLSEPFvszw/PO9R6q NZ4ZD8UNyi4EsbWyxwiFHR+/Y4dI+XsYr27hWn62O60+8HGOJdscuOHAC0m7tOHIHUSnznNZ1 nmMVT5wrDvw0Ao001nfat9hcc2ZLGdTjLL7xtM3Sp/fIxdSP4zVqwqw/IM8ksZ2U/M6h2Kq4T xklptzqcDZBST7R4mA1rD4XequC5TwNe+O3c18F6kp+DX0dKFc= 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: Tue, 26 Sep 2017 12:24:57 +0200 The local variable "state" is reassigned by a statement at the beginning. Thus omit the explicit initialisation. Signed-off-by: Markus Elfring --- drivers/media/dvb-frontends/tda8261.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/tda8261.c b/drivers/media/dvb-frontends/tda8261.c index e3b4183d00c2..492d8c03a5fa 100644 --- a/drivers/media/dvb-frontends/tda8261.c +++ b/drivers/media/dvb-frontends/tda8261.c @@ -183,7 +183,7 @@ struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe, const struct tda8261_config *config, struct i2c_adapter *i2c) { - struct tda8261_state *state = NULL; + struct tda8261_state *state; state = kzalloc(sizeof(*state), GFP_KERNEL); if (!state)