scsi: ncr5380: Resolve various static checker warnings
authorFinn Thain <fthain@telegraphics.com.au>
Sun, 15 Jan 2017 23:50:57 +0000 (18:50 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 1 Feb 2017 02:38:35 +0000 (21:38 -0500)
commit4ab2a7878fa56ae7581bf8a94049b355c730aef0
treeb6681085d2e6ae0a8cc3321ba5472a0a69416b5b
parent14d739f640d894b4b5db1ab3e1df17b865825a42
scsi: ncr5380: Resolve various static checker warnings

Avoid various warnings from "make C=1" by annotating a couple of
unlock-then-lock sequences, replacing a zero with NULL and correcting
some type casts.

Also avoid a warning from "make W=1" by adding braces.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c
drivers/scsi/atari_scsi.c
drivers/scsi/mac_scsi.c