Skip to content

Commit

Permalink
[SCSI] scsi_dh_rdac: Fix for returning correct mode select cmd return…
Browse files Browse the repository at this point in the history
… info

The function mode_select_handle_sense returns SCSI_DH_OK even when there is a sense code which is incorrect. Removing it so that it returns SCSI_DH_IO when there is sense that is not handled by this function.

Signed-off-by: Babu Moger <babu.moger@lsi.com>
Reviewed-by: Vijay Chauhan <vijay.chauhan@lsi.com>
Reviewed-by: Bob Stankey <Robert.stankey@lsi.com>
Reviewed-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Moger, Babu authored and James Bottomley committed Oct 2, 2009
1 parent 3487640 commit c0630f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/scsi/device_handler/scsi_dh_rdac.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,6 @@ static int mode_select_handle_sense(struct scsi_device *sdev,
if (!ret)
goto done;

err = SCSI_DH_OK;

switch (sense_hdr.sense_key) {
case NO_SENSE:
case ABORTED_COMMAND:
Expand Down

0 comments on commit c0630f7

Please sign in to comment.