瀏覽代碼

[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>
Stephen M. Cameron 15 年之前
父節點
當前提交
5512672f75
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/scsi/hpsa.c

+ 1 - 1
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 = (DID_OK << 16); 		/* host byte */
 	cmd->result |= (COMMAND_COMPLETE << 8);	/* msg 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. */
 	/* copy the sense data whether we need to or not. */
 	memcpy(cmd->sense_buffer, ei->SenseInfo,
 	memcpy(cmd->sense_buffer, ei->SenseInfo,