summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2008-03-02 10:30:17 +0100
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 19:15:41 +0200
commit96ad0dfe8388428acc10c1bd96573f893fc79439 (patch)
tree5ec74052f48247bb0d53061bd149b1581a861e3e /drivers
parent[SCSI] scsi_debug: remove scsi_debug.h (diff)
downloadlinux-96ad0dfe8388428acc10c1bd96573f893fc79439.tar.xz
linux-96ad0dfe8388428acc10c1bd96573f893fc79439.zip
[SCSI] scsi_debug: remove unnecessary checking
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Douglas Gilbert <dougg@torque.net> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/scsi_debug.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index be3437c4058c..c14c9b19213a 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -344,9 +344,6 @@ int scsi_debug_queuecommand(struct scsi_cmnd * SCpnt, done_funct_t done)
int inj_transport = 0;
int delay_override = 0;
- if (done == NULL)
- return 0; /* assume mid level reprocessing command */
-
scsi_set_resid(SCpnt, 0);
if ((SCSI_DEBUG_OPT_NOISE & scsi_debug_opts) && cmd) {
printk(KERN_INFO "scsi_debug: cmd ");