scsi: pmcraid: fix minor sparse warnings
authorArnd Bergmann <arnd@arndb.de>
Thu, 20 Apr 2017 17:54:48 +0000 (19:54 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 24 Apr 2017 22:11:22 +0000 (18:11 -0400)
commit144b139c96200c51248b8701a1ef4a6bebd3dc8c
tree9a1627f8e648ee9d5259e59a69139a742f30d429
parent45c80be614b094459f2c699353080e4f8059f610
scsi: pmcraid: fix minor sparse warnings

pmcraid_minor is only used in this one file and should be 'static' as suggested
by sparse:

drivers/scsi/pmcraid.c:80:1: warning: symbol 'pmcraid_minor' was not declared. Should it be static?

In Linux coding style, a literal '0' integer should not be used to represent
a NULL pointer:

drivers/scsi/pmcraid.c:348:29: warning: Using plain integer as NULL pointer
drivers/scsi/pmcraid.c:4824:49: warning: Using plain integer as NULL pointer

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pmcraid.c