lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4d48377ca4e62a71f89e4de6f80e6725@208suo.com>
Date:   Thu, 20 Jul 2023 17:57:28 +0800
From:   sunran001@...suo.com
To:     hare@...e.com, jejb@...ux.ibm.com, martin.petersen@...cle.co
Cc:     linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] scsi: aic7xxx: avoid checkpatch error

ERROR: do not initialise statics to NULL

Signed-off-by: Ran Sun <sunran001@...suo.com>
---
  drivers/scsi/aic7xxx/aic7xxx_osm.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

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 <scsi/scsicam.h>

-static struct scsi_transport_template *ahc_linux_transport_template = 
NULL;
+static struct scsi_transport_template *ahc_linux_transport_template;

  #include <linux/init.h>		/* __setup */
  #include <linux/mm.h>		/* 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 <hare@...e.de>");
  MODULE_DESCRIPTION("Adaptec AIC77XX/78XX SCSI Host Bus Adapter 
driver");

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ