Skip to content

Commit

Permalink
[SCSI] hpsa: fix scsi status mis-shift
Browse files Browse the repository at this point in the history
The SCSI status does not need to be shifted.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed Mar 3, 2010
1 parent f0edafc commit 5512672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/hpsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ static void complete_scsi_command(struct CommandList *cp,

cmd->result = (DID_OK << 16); /* host byte */
cmd->result |= (COMMAND_COMPLETE << 8); /* msg byte */
cmd->result |= (ei->ScsiStatus << 1);
cmd->result |= ei->ScsiStatus;

/* copy the sense data whether we need to or not. */
memcpy(cmd->sense_buffer, ei->SenseInfo,
Expand Down

0 comments on commit 5512672

Please sign in to comment.