Skip to content

Commit 3ae0819

Browse files
hreineckemartinkpetersen
authored andcommitted
scsi: ncr53c8xx: Fix typos
The patch to switch using SAM status values had some typos; fix them up. Link: https://lore.kernel.org/r/[email protected] Fixes: 491152c ("scsi: ncr53c8xx: Use SAM status values") Reported-by: kernel test robot <[email protected]> Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 0be3109 commit 3ae0819

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/scsi/ncr53c8xx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4999,7 +4999,7 @@ void ncr_complete (struct ncb *np, struct ccb *cp)
49994999
/*
50005000
** SCSI bus reset
50015001
*/
5002-
set_status_byte(cmd, sp->scsi_status);
5002+
set_status_byte(cmd, cp->scsi_status);
50035003
set_host_byte(cmd, DID_RESET);
50045004

50055005
} 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)
66056605
OUTL_DSP (NCB_SCRIPT_PHYS (np, reselect));
66066606
return;
66076607
case SAM_STAT_COMMAND_TERMINATED:
6608-
case SAM_STAT_CHECK_CONDIION:
6608+
case SAM_STAT_CHECK_CONDITION:
66096609
/*
66106610
** If we were requesting sense, give up.
66116611
*/
@@ -8044,7 +8044,7 @@ printk("ncr53c8xx_queue_command\n");
80448044
spin_lock_irqsave(&np->smp_lock, flags);
80458045

80468046
if ((sts = ncr_queue_command(np, cmd)) != DID_OK) {
8047-
set_host_byte(cmd, sts;
8047+
set_host_byte(cmd, sts);
80488048
#ifdef DEBUG_NCR53C8XX
80498049
printk("ncr53c8xx : command not queued - result=%d\n", sts);
80508050
#endif

0 commit comments

Comments
 (0)