From patchwork Thu Aug 18 10:00:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9287189 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 20335607FF for ; Thu, 18 Aug 2016 10:00:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10FEA290C1 for ; Thu, 18 Aug 2016 10:00:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05D53290D4; Thu, 18 Aug 2016 10:00:39 +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 A4619290DC for ; Thu, 18 Aug 2016 10:00:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945896AbcHRKAV (ORCPT ); Thu, 18 Aug 2016 06:00:21 -0400 Received: from mout.web.de ([212.227.17.12]:51065 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbcHRKAU (ORCPT ); Thu, 18 Aug 2016 06:00:20 -0400 Received: from [192.168.1.3] ([77.182.223.38]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0Maayz-1btvKl1Vij-00K5gt; Thu, 18 Aug 2016 12:00:10 +0200 Subject: [PATCH 3/5] block-cciss: Delete unnecessary initialisations in cciss_bigpassthru() To: esc.storagedev@microsemi.com, iss_storagedev@hp.com, linux-scsi@vger.kernel.org, Don Brace References: <566ABCD9.1060404@users.sourceforge.net> <686a1f95-a76c-2624-50e1-9d0e59948e64@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: Date: Thu, 18 Aug 2016 12:00:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: <686a1f95-a76c-2624-50e1-9d0e59948e64@users.sourceforge.net> X-Provags-ID: V03:K0:mls+b6fd/b/AFm4Zaemf5bLgQ1izEbxApG/HdQgzpXROYumGvrR GFoWFI/YzWTZXZO6FHyo262ZoU8Yd9Z/0ZRm+YX+FTDXMGJ/wXngL8YBpg1Ge/ZrOIDgBbL OvFF5SJWvonby3/eB7Q+/lLeUVYM8RZVq9MEh4//b3yaanOux1LiG9QrKeeSOASthMNGO6Y fwjDP5X9m4KzlmAb9gtvQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:qJhcp7NG2lc=:RtBkQ+uuccDU3JH/x3aCcl A/hz8jVrnicOSBfZUk04U/lh4VjZed/2ooNeGy6AE9wKHQBWDZw+TZLV2+nFXzb1BCoJL2giT DQjYBQCS3bXo7LiRSqacL+rnINuHEcnvxIMaNngWYKyOd3mzhcctIK2VUMohjxy+87hzz+Ty4 DFiv9f4F22nVbRqhZ2vr9d0odNQWO/ljaEspD0LxbsV/hMQ1vCCUrngWvINDgualLbnbITIhR VC+CQYlRoiQFaq5bJ+A2635gP49Y1A5T9XAxlsQnflX4KgLiIWjMlIqxkrJwWRLF3tq2JYGpk skxqwC4yHUaGSftG0d04MIaRNJNpR3j7+pg/GTo+yjcEY99Ez76/Fuhf7VwBW+e/ifff+fd5O hgSSgPliqFjJs1ztdwOvHjiugmU3HF/sb+zElBlV8yCULovSaRXGyr7bNFe7bp03+Zkv2zs11 MUaWx8QkycggvR+VobKw/FwxjZYugtDbyGU11p3JMWX6T2cV3dV+ffPNxo6wD/AObIdcpGoMI E7K11FakMqjg/l/d7FcuX8RqP38wgm3/dq1G3qXlv6fEN3GdkxtbEkJjFcanZfbbNqYip4N7A jfUtBcTbhtHBb5F+R5eezrg69PYky4cFdEmjtENjdcLADQWjeXIwSBhaxPZ0gMrmCae/Fepr7 4kgnzowchslmTok0PQWd9K88LLbQMoCnc7cWhhihilB1+FbUSDAryPN5W2Yocd+Axsw7gN4ty /yNexh853I9u0Fuuv/ltkkfQ2dvFYPsQmfNvU+cCNUC7Y5OwIuA3JtxArjCXqx7l0VUAAv6v8 trByvSs Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 17 Aug 2016 22:55:51 +0200 Three local variables will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/block/cciss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 43ac632..10e1b0a 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -1572,11 +1572,11 @@ static int cciss_bigpassthru(ctlr_info_t *h, void __user *argp) { BIG_IOCTL_Command_struct *ioc; CommandList_struct *c; - unsigned char **buff = NULL; - int *buff_size = NULL; + unsigned char **buff; + int *buff_size; u64bit temp64; BYTE sg_used = 0; - int status = 0; + int status; int i; DECLARE_COMPLETION_ONSTACK(wait); __u32 left;