Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp203905pxb; Fri, 9 Apr 2021 23:48:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW+igaCs83CiydxqREDzeTiOTxn/XDMJf1M+mJ6H4Aj44kbXCXvpwyX0OAokXKag21FdiU X-Received: by 2002:a65:4c89:: with SMTP id m9mr16386697pgt.330.1618037339225; Fri, 09 Apr 2021 23:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618037339; cv=none; d=google.com; s=arc-20160816; b=mOwcdKi4IAk8/JsPcF5e4uQPkEbojEEcnKnc8KT2fVQjPJwvayvUvNIgvgMcMlPxqQ yFRmzygQD84Y7qQ4LIKDuWqX0kk/2ap+9R1uNAE5A/A4vhTe55+KyMQFyDMBCN5hoTbz K/fejY65toQ2zhrOObkNRIA9t4A3TgOc57q8kOSMLJxGMLQh/zdH2w0hxIPqnIPa+bul Ob1+3vGeSjI7j8CvSV3qrcTTC7XxBo17baxjUZGp81z++UZ+qIAvpoCn1bO8q3qpB6rZ mVlqHUoQyv9kWwOLvPUFL+VLF3SaWdwYxLbWk48lTb5rBOz4u2SilhHhX1pX9g+8FqYf CRIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=RwtyIop8UnCWsTuW9fmEMOggz3Sc/aWbA9pkGS33e0M=; b=J1Exquixb/dIMe548rvPrbAeQcXltquKG8DpCJ+jrAF2GTsKMNbqOwG11zfK8tsjcC fRmq/xxT/V9/VARb/juwbfn62aEEseV6lhuHbBh+Qe7UaNafOzHY5tX/KQEMMwWpoqfL 43d1PJBgkZimtISTp8TN7oRnGNhVp4Ecb2JnVuZhaUNBHKmfqDZfYvfgJwAckP5Njb+9 3Be4FJJLAuaYevIgiVrAFGZocK4G/M7uyS7hbde+t9BDiH4+Yq/ohBIS/BIF7YyrEhfK 4xqRWh2mkk5Fw6hYhOAQ2r6g6uplH8B+DYOOEqPDr7fKslvn8lDGKIkLkzkNfHrgG3hx JJUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 90si5323000plc.183.2021.04.09.23.48.47; Fri, 09 Apr 2021 23:48:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234511AbhDJGsV (ORCPT + 99 others); Sat, 10 Apr 2021 02:48:21 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:16882 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234169AbhDJGsJ (ORCPT ); Sat, 10 Apr 2021 02:48:09 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FHQWJ5wYMzkhsK; Sat, 10 Apr 2021 14:46:04 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Sat, 10 Apr 2021 14:47:45 +0800 From: Luo Jiaxing To: , , , , CC: , , , , Subject: [PATCH v1 8/8] scsi: megaraid: clean up for static variable initialise to 0 Date: Sat, 10 Apr 2021 14:48:07 +0800 Message-ID: <1618037287-460-9-git-send-email-luojiaxing@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618037287-460-1-git-send-email-luojiaxing@huawei.com> References: <1618037287-460-1-git-send-email-luojiaxing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Following error is reported by checkpatch.pl: ERROR: do not initialise statics to 0 +static int megaraid_expose_unconf_disks = 0; So fix them. Signed-off-by: Luo Jiaxing --- drivers/scsi/megaraid/megaraid_mbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index 486c01d..0f8fcbf 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c @@ -146,7 +146,7 @@ MODULE_VERSION(MEGARAID_VERSION); /* * Set to enable driver to expose unconfigured disk to kernel */ -static int megaraid_expose_unconf_disks = 0; +static int megaraid_expose_unconf_disks; module_param_named(unconf_disks, megaraid_expose_unconf_disks, int, 0); MODULE_PARM_DESC(unconf_disks, "Set to expose unconfigured disks to kernel (default=0)"); @@ -181,7 +181,7 @@ MODULE_PARM_DESC(cmd_per_lun, * This would result in non-disk devices being skipped during driver load * time. These can be later added though, using /proc/scsi/scsi */ -static unsigned int megaraid_fast_load = 0; +static unsigned int megaraid_fast_load; module_param_named(fast_load, megaraid_fast_load, int, 0); MODULE_PARM_DESC(fast_load, "Faster loading of the driver, skips physical devices! (default=0)"); -- 2.7.4