summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hosts.c
diff options
context:
space:
mode:
authorJosh Hunt <johunt@akamai.com>2012-06-09 16:03:39 +0200
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 09:58:36 +0200
commit9e1a15376bce2fc7746145eb8ee78a3674658bc8 (patch)
tree81f23f7fc1152a4386814dfc443129cc5f7e1de2 /drivers/scsi/hosts.c
parent[SCSI] scsi_dh_alua: Re-enable STPG for unavailable ports (diff)
downloadlinux-9e1a15376bce2fc7746145eb8ee78a3674658bc8.tar.xz
linux-9e1a15376bce2fc7746145eb8ee78a3674658bc8.zip
[SCSI] properly initialize atomic_t
Initialize atomic_t scsi_host_next_hn and ioerr_cntas per the guidelines defined in Documentation/atomic_ops.txt Signed-off-by: Josh Hunt <johunt@akamai.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/hosts.c')
-rw-r--r--drivers/scsi/hosts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index a3a056a9db67..2b6a03de5787 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -42,7 +42,7 @@
#include "scsi_logging.h"
-static atomic_t scsi_host_next_hn; /* host_no for next new host */
+static atomic_t scsi_host_next_hn = ATOMIC_INIT(0); /* host_no for next new host */
static void scsi_host_cls_release(struct device *dev)