From patchwork Thu Jul 20 09:57:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sunran001@208suo.com X-Patchwork-Id: 705201 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77330EB64DA for ; Thu, 20 Jul 2023 09:57:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbjGTJ5e (ORCPT ); Thu, 20 Jul 2023 05:57:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbjGTJ5c (ORCPT ); Thu, 20 Jul 2023 05:57:32 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40BE0A2 for ; Thu, 20 Jul 2023 02:57:31 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R67Qc53DNzBRDsV for ; Thu, 20 Jul 2023 17:57:28 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689847048; x=1692439049; bh=Byn4fG+l3+wgeKB6vOCQHYXNjBM M0bYlNp8Mj7rgedE=; b=gNGnKqORVcaZ1xhOD3iSAnNzJjbMIXOlcKoh7PINSa+ kbtTz9uIRK3pYRg1GE59N6qeZsC+ccyxrmCSHzuNWQkRmStGKyD30l8iGcTcGFeV 4VCUd18xxKgj2Yktt3j5ZjzbPAVto3ERX64k/iAGe9Wz7NYsyvVHdJf1qnkvuneX VMMRLx6vHMoBXY4zDMhR/S1Fy1TxsURhGogCYmhEQLSYWrd92DthIcxum0Hhx1v8 CwVx+EQuO2R1mGCVAlz0G236YVGPTDanFMptXOE2E3ZW8kKCe9x6AF4qrBTqdW+c IrC8ZN2Bo6ytbMaal7AFcI5FYbeNuaBnVH/fZOywaaA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NZoR2Ka106bg for ; Thu, 20 Jul 2023 17:57:28 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R67Qc2pNPzBRDsS; Thu, 20 Jul 2023 17:57:28 +0800 (CST) MIME-Version: 1.0 Date: Thu, 20 Jul 2023 17:57:28 +0800 From: sunran001@208suo.com To: hare@suse.com, jejb@linux.ibm.com, martin.petersen@oracle.co Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: aic7xxx: avoid checkpatch error In-Reply-To: <20230720095619.3954-1-xujianghui@cdjrlc.com> References: <20230720095619.3954-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <4d48377ca4e62a71f89e4de6f80e6725@208suo.com> X-Sender: sunran001@208suo.com Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org ERROR: do not initialise statics to NULL Signed-off-by: Ran Sun --- drivers/scsi/aic7xxx/aic7xxx_osm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) #include /* For fetching system memory size */ @@ -325,7 +325,7 @@ static uint32_t aic7xxx_periodic_otag; /* * Module information and settable options. */ -static char *aic7xxx = NULL; +static char *aic7xxx; MODULE_AUTHOR("Maintainer: Hannes Reinecke "); MODULE_DESCRIPTION("Adaptec AIC77XX/78XX SCSI Host Bus Adapter driver"); diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index d3b1082654d5..c062bf27b55a 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c @@ -124,7 +124,7 @@ #include "aic7xxx_inline.h" #include -static struct scsi_transport_template *ahc_linux_transport_template = NULL; +static struct scsi_transport_template *ahc_linux_transport_template; #include /* __setup */