mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
scsi: dc395x: Fix warning using plain integer as NULL
Sparse static analysis tool generates a warning with this message "Using plain integer as NULL pointer". Fix it. Signed-off-by: Abhinav Singh <singhabhinav9051571833@gmail.com> Link: https://lore.kernel.org/r/20231109215049.1466431-1-singhabhinav9051571833@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
130fbf45f4
commit
f38d4eda25
@ -1366,7 +1366,7 @@ static u8 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb,
|
||||
"command while another command (0x%p) is active.",
|
||||
srb->cmd,
|
||||
acb->active_dcb->active_srb ?
|
||||
acb->active_dcb->active_srb->cmd : 0);
|
||||
acb->active_dcb->active_srb->cmd : NULL);
|
||||
return 1;
|
||||
}
|
||||
if (DC395x_read16(acb, TRM_S1040_SCSI_STATUS) & SCSIINTERRUPT) {
|
||||
|
Loading…
Reference in New Issue
Block a user