[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>
This commit is contained in:
Josh Hunt
2012-06-09 07:03:39 -07:00
committed by James Bottomley
parent bb2c94a3a6
commit 9e1a15376b
2 changed files with 2 additions and 1 deletions

View File

@@ -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)