mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
scsi: ncr53c8xx: Fix typos
The patch to switch using SAM status values had some typos; fix them up.
Link: https://lore.kernel.org/r/20210125085415.70574-1-hare@suse.de
Fixes: 491152c7c3
("scsi: ncr53c8xx: Use SAM status values")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
0be310979e
commit
3ae0819079
@@ -4999,7 +4999,7 @@ void ncr_complete (struct ncb *np, struct ccb *cp)
|
|||||||
/*
|
/*
|
||||||
** SCSI bus reset
|
** SCSI bus reset
|
||||||
*/
|
*/
|
||||||
set_status_byte(cmd, sp->scsi_status);
|
set_status_byte(cmd, cp->scsi_status);
|
||||||
set_host_byte(cmd, DID_RESET);
|
set_host_byte(cmd, DID_RESET);
|
||||||
|
|
||||||
} else if (cp->host_status == HS_ABORTED) {
|
} else if (cp->host_status == HS_ABORTED) {
|
||||||
@@ -6605,7 +6605,7 @@ static void ncr_sir_to_redo(struct ncb *np, int num, struct ccb *cp)
|
|||||||
OUTL_DSP (NCB_SCRIPT_PHYS (np, reselect));
|
OUTL_DSP (NCB_SCRIPT_PHYS (np, reselect));
|
||||||
return;
|
return;
|
||||||
case SAM_STAT_COMMAND_TERMINATED:
|
case SAM_STAT_COMMAND_TERMINATED:
|
||||||
case SAM_STAT_CHECK_CONDIION:
|
case SAM_STAT_CHECK_CONDITION:
|
||||||
/*
|
/*
|
||||||
** If we were requesting sense, give up.
|
** If we were requesting sense, give up.
|
||||||
*/
|
*/
|
||||||
@@ -8044,7 +8044,7 @@ printk("ncr53c8xx_queue_command\n");
|
|||||||
spin_lock_irqsave(&np->smp_lock, flags);
|
spin_lock_irqsave(&np->smp_lock, flags);
|
||||||
|
|
||||||
if ((sts = ncr_queue_command(np, cmd)) != DID_OK) {
|
if ((sts = ncr_queue_command(np, cmd)) != DID_OK) {
|
||||||
set_host_byte(cmd, sts;
|
set_host_byte(cmd, sts);
|
||||||
#ifdef DEBUG_NCR53C8XX
|
#ifdef DEBUG_NCR53C8XX
|
||||||
printk("ncr53c8xx : command not queued - result=%d\n", sts);
|
printk("ncr53c8xx : command not queued - result=%d\n", sts);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user