Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968414AbdIZLcf (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 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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 892 Lines: 26 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) -- 2.14.1