From patchwork Sat Dec 12 14:43:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 7835051 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CF030BEEE1 for ; Sat, 12 Dec 2015 14:43:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 087922025A for ; Sat, 12 Dec 2015 14:43:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B0EB203AD for ; Sat, 12 Dec 2015 14:43:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752743AbbLLOnl (ORCPT ); Sat, 12 Dec 2015 09:43:41 -0500 Received: from mout.web.de ([212.227.17.12]:57601 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751753AbbLLOnj (ORCPT ); Sat, 12 Dec 2015 09:43:39 -0500 Received: from [192.168.1.2] ([78.49.180.156]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0LkPjj-1afjMo0fal-00cOTO; Sat, 12 Dec 2015 15:43:37 +0100 Subject: [PATCH 6/7] iscsi-target: Delete unnecessary variable initialisations in iscsi_check_valuelist_for_support() To: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, "Nicholas A. Bellinger" References: <566ABCD9.1060404@users.sourceforge.net> <566C2F7B.6030704@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <566C3297.1040404@users.sourceforge.net> Date: Sat, 12 Dec 2015 15:43:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <566C2F7B.6030704@users.sourceforge.net> X-Provags-ID: V03:K0:n4OXm6GU+KfJWp1fR1fZWQ2aMpCck5Q6RQZ0gtGJgRBAKysWgU0 B29kcAkY4MhyfJ/oVPLK5gGexiE6ePaR1J6zYae7xtmvYUUTZ73zuGj5B2vMNX4fF3pl20k 8DTJ+VjC/Xn+Zvjtko6Dij7uEXUfwXsFYVAuYCU0ftTPx044RlI4rTgJiEyuqhSyMBPLUan BmWgt5HYAts/QSUn8vKeg== X-UI-Out-Filterresults: notjunk:1; V01:K0:8D5YPK6TVxI=:g1WU5RJkA30CcTBGxn97lL T6JTyiiR4lgE8lJwrtv+VVstlS9lfnO1ER+RUoFJHIP86bxZ2PH3HcU8jeifpdieC4lVLR9WU b6d5fONRm6yNVqZzET9qRcEHosUtHDTRqebxyp722Sm5IbVrk87dBX1pr6uXTQftzzFL+9Dbb uak3Z4caYUD7S2rNF1uPQFLnwWmA1arrbEgy3GMY3K5Q43Yav4uKTU2Hp/wwE5JjcOrEVp8s9 Uk1L51BoWGjq2WBFR3Qwd7x216A+6dlV9cLMadR0HvQFvAngy2L+EccytxMK718/umQLqvpNa ZUw8/fGXGiAfeq5D/N5vEPX925uTLxxps1pBVz0Swoppl7cjL3LTCLhbdLEWZcIFzKF7o6V0m 0JY0D7SQJh5u8yYNSo5h8Xki7S3U6rwHvFRFawdNHW4PjWdfZbnT8twXpgTowaDskQxnv2LDz bdvklCtbxxLS2c2Fd4UcV2kahyL4HCCOblvlHDwHufijndj/912Tc+TMPNBXQOrb6b+5/pWRf SmOCdqy/IohcAKNIUei+psVLhfqROzLgGIwRy3Zvy23lkxfQlzUsNe0qBRgUmlWNftUCNH7XI rOzWkRo8TyiccywS9Yv87nczeAbq9JAvAavHKZJOUs+EXZSazm+RXHe6Tum1gZQjN4KFQGhzi C3OssUDXUJYi818YjBls7/X5T/Do/HA5tI3cvNKssX5Kk3KP1CQwf7CKiegnsOO+ncN/HCQaB upRKvdYPBFOPmTf7ZIdnL08vc4CPz+DB0CL03wC3oM84BQYNAyZzJKA5PvKlQyMrO3BD32XiL iP9zrxU Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 12 Dec 2015 14:34:26 +0100 The variables "tmp1" and "tmp2" will eventually be set to appropriate pointers from a call of the strchr() function. Thus let us 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 29ecf29..53e3345 100644 --- a/drivers/target/iscsi/iscsi_target_parameters.c +++ b/drivers/target/iscsi/iscsi_target_parameters.c @@ -920,7 +920,7 @@ static char *iscsi_check_valuelist_for_support( struct iscsi_param *param, char *value) { - char *tmp1 = NULL, *tmp2 = NULL; + char *tmp1, *tmp2; char *acceptor_values = NULL, *proposer_values = NULL; acceptor_values = param->value;