[SCSI] scsi_debug: remove unnecessary checking
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Sun, 2 Mar 2008 09:30:17 +0000 (18:30 +0900)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 7 Apr 2008 17:15:41 +0000 (12:15 -0500)
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>
drivers/scsi/scsi_debug.c

index be3437c4058ceb8e70b06c47a050eb12d757dca9..c14c9b19213adaed3b32fb62aefa437ba1939ab4 100644 (file)
@@ -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 ");