diff options
author | Stephen M. Cameron <scameron@beardog.cce.hp.com> | 2010-02-25 15:03:01 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-03 08:06:04 -0500 |
commit | 5512672f75611e9239669c6a4dce648b8d60fedd (patch) | |
tree | 36a225e2a267318ae953efa2f311e53a30cc8e18 /drivers | |
parent | f0edafc6628f924a424ab4059df74f46f4f4241e (diff) |
[SCSI] hpsa: fix scsi status mis-shift
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/hpsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 3734f31d08a8..604b4c95a440 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -1006,7 +1006,7 @@ static void complete_scsi_command(struct CommandList *cp, | |||
1006 | 1006 | ||
1007 | cmd->result = (DID_OK << 16); /* host byte */ | 1007 | cmd->result = (DID_OK << 16); /* host byte */ |
1008 | cmd->result |= (COMMAND_COMPLETE << 8); /* msg byte */ | 1008 | cmd->result |= (COMMAND_COMPLETE << 8); /* msg byte */ |
1009 | cmd->result |= (ei->ScsiStatus << 1); | 1009 | cmd->result |= ei->ScsiStatus; |
1010 | 1010 | ||
1011 | /* copy the sense data whether we need to or not. */ | 1011 | /* copy the sense data whether we need to or not. */ |
1012 | memcpy(cmd->sense_buffer, ei->SenseInfo, | 1012 | memcpy(cmd->sense_buffer, ei->SenseInfo, |