From patchwork Tue Dec 12 21:47:40 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: 10108311 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 9182E602B3 for ; Tue, 12 Dec 2017 21:48:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 828B6284DE for ; Tue, 12 Dec 2017 21:48:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75BA128B76; Tue, 12 Dec 2017 21:48: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=ham 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 1FFE4284DE for ; Tue, 12 Dec 2017 21:48:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbdLLVsV (ORCPT ); Tue, 12 Dec 2017 16:48:21 -0500 Received: from mout.web.de ([212.227.15.3]:63495 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752570AbdLLVsU (ORCPT ); Tue, 12 Dec 2017 16:48:20 -0500 Received: from [192.168.1.3] ([77.181.137.123]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LdVdS-1epzgw0i82-00imP3; Tue, 12 Dec 2017 22:47:44 +0100 Subject: [PATCH 5/8] target/iscsi: Delete an unnecessary variable initialisation in iscsi_copy_param_list() From: SF Markus Elfring To: target-devel@vger.kernel.org, linux-scsi@vger.kernel.org, Al Viro , Arun Easi , Bart Van Assche , Dan Carpenter , David Disseldorp , Hannes Reinecke , Ingo Molnar , "Jason A. Donenfeld" , Jiang Yi , Kees Cook , "Nicholas A. Bellinger" , Russell King , Tang Wenji , Theodore Ts'o , Varun Prakash Cc: LKML , kernel-janitors@vger.kernel.org References: <6163538d-a406-2f60-11a2-88b4694e9975@users.sourceforge.net> Message-ID: <1dc1578d-277b-ec04-6493-f243a3f568ce@users.sourceforge.net> Date: Tue, 12 Dec 2017 22:47:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <6163538d-a406-2f60-11a2-88b4694e9975@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:pSaYR3PxETFnBx6lU7y+J0JBQiVQalAEY/0WqwKKbXb0590ujPK 6ytGYdq7mIawrfbRgSr589cd9yv35gJEP4eRAabxbU+N0FHU4sJeJKeFONXIA/wozyKE903 TqQuQRwkqs9jQoKzWx/9ktDIUbjQINLITRGt8VS6+2BLQC6Pyc0vWN/K8CWx0m6iiy+wOg6 Boy3qXrVGMg7sSgYyKJEA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Gowt4DkbHgI=:uAKKYLhYMzZ+40FWPKbOXS KzNSdf1rz8ZZTVj7pUBPhoImtE/Xvt5G9PED9TliphYuWWrSoppluKoH6gdjgfUwMr/Nuq3zY kk51cxCXog0zGGQafgt5T6rXaGTDyL/9EgGZ9CgkScy52+swhnl9eDFkv8J0VzEePO2dfzt5r gDJIiDwALvbDKeJtk8RvzpiJHV7eQxJZuDaE8+50put9IFW8ZQtpd7Jo87pk9wwl1dGHCYihM lR5TdrfRUWKv3hJyfzRmEFhIx++8bzCKHJmhWisX+wgA/v5yTLw6UEJA8axdHzGRxUyoPVzrX v7PbblXvWAmv5PUbu744X969pzAoRbwmHUGk7t4vgM52NNMIpYFVQcpEvdCy6PQgHFpVVVYgn OsbEtc14H3hZ9+yp6GzY+Vc1I1NcPJljb3RSWP6DsQetUZdFv+W4aHzkEJAv5ZQPE8LssLw2X tI4kp+QtEo+JDVc0OfRQPPYWQAf9TfNwYyVgvQO88Obd3GRQcti2D5opbAJa2LB9XkTrC7Dp4 wCgpXkMbbRkTe5k8aYL66nuKPbv9lxsLQ7gVWk/vqryUYxW3+21jY0i70n2tzTPtGWxSTROag WDwb5ZFEZ3mt9xr3uBP8p7LBzjmX7IAidMop5m1H0/EYohDTBgg+JJNYJC6NkqrjYeYak3lW3 0BQrCmIA0IPt0LHSt84IgQvO+ontnex61qheMufbyjQHSdJ0iyCi3fWLGvPPLDizqQMnHni5n tM8uTyWFiUpxLazErRkXhVg2PrOO5LUfhwRNVrDQNNLT1R5TZj8IRW88m/2V1s9dB38rX2vpe pcIIZt09mZjDU+LF7lJlEFVOCM87psTWQ1pUggxKjmSL1nBHUc= Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Tue, 12 Dec 2017 21:15:55 +0100 The variable "param_list" will be reassigned by a following statement. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/target/iscsi/iscsi_target_parameters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/iscsi/iscsi_target_parameters.c b/drivers/target/iscsi/iscsi_target_parameters.c index 06310b2c4e26..25a3a9550488 100644 --- a/drivers/target/iscsi/iscsi_target_parameters.c +++ b/drivers/target/iscsi/iscsi_target_parameters.c @@ -566,7 +566,7 @@ int iscsi_copy_param_list( { struct iscsi_param *param = NULL; struct iscsi_param *new_param = NULL; - struct iscsi_param_list *param_list = NULL; + struct iscsi_param_list *param_list; param_list = kzalloc(sizeof(struct iscsi_param_list), GFP_KERNEL); if (!param_list)