From: Stephen M. Cameron Date: Thu, 25 Feb 2010 20:03:01 +0000 (-0600) Subject: [SCSI] hpsa: fix scsi status mis-shift X-Git-Tag: v2.6.34-rc2~18^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5512672f75611e9239669c6a4dce648b8d60fedd;p=platform%2Fupstream%2Fkernel-adaptation-pc.git [SCSI] hpsa: fix scsi status mis-shift The SCSI status does not need to be shifted. Signed-off-by: Stephen M. Cameron Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 3734f31..604b4c9 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -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,