summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sun3x_esp.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2008-10-10 16:03:20 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-10-23 11:42:19 -0500
commitd4c9b736080056ae3ba81dcf2ac418193c57dbb1 (patch)
treee27d56d2cb3ee0ffcab0499654105cad5efa1627 /drivers/scsi/sun3x_esp.c
parent36a529202b334d0513cfeabeadca940ec41c8165 (diff)
downloadlinux-d4c9b736080056ae3ba81dcf2ac418193c57dbb1.tar.gz
linux-d4c9b736080056ae3ba81dcf2ac418193c57dbb1.tar.bz2
linux-d4c9b736080056ae3ba81dcf2ac418193c57dbb1.zip
[SCSI] sd: remove command-size switching code
This patch (as1138) removes from sd.c some old code for switching from 10-byte commands to 6-byte commands. This code is redundant -- the switching for READ and WRITE is already handled in scsi_io_completion() and the switching for MODE SENSE is already handled in scsi_mode_sense(). (There is no comparable switch for MODE SELECT, but I doubt one is needed.) Furthermore the other handlers do a better job; they check for appropriate ASC and ASCQ values before blindly switching the size. The code in sd.c is known to cause problems with some devices by switching when it shouldn't. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sun3x_esp.c')
0 files changed, 0 insertions, 0 deletions