diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2017-01-16 00:50:57 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-02-01 03:38:35 +0100 |
commit | 4ab2a7878fa56ae7581bf8a94049b355c730aef0 (patch) | |
tree | b6681085d2e6ae0a8cc3321ba5472a0a69416b5b /drivers/scsi/atari_scsi.c | |
parent | scsi: ncr5380: Reduce #include files (diff) | |
download | linux-4ab2a7878fa56ae7581bf8a94049b355c730aef0.tar.xz linux-4ab2a7878fa56ae7581bf8a94049b355c730aef0.zip |
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>
Diffstat (limited to 'drivers/scsi/atari_scsi.c')
-rw-r--r-- | drivers/scsi/atari_scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c index 2b6eb7c24c69..b2ffab6577a6 100644 --- a/drivers/scsi/atari_scsi.c +++ b/drivers/scsi/atari_scsi.c @@ -782,7 +782,7 @@ static int __init atari_scsi_probe(struct platform_device *pdev) return -ENOMEM; } atari_dma_phys_buffer = atari_stram_to_phys(atari_dma_buffer); - atari_dma_orig_addr = 0; + atari_dma_orig_addr = NULL; } instance = scsi_host_alloc(&atari_scsi_template, |