ieee1394: sbp2: remove dead code
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 2 Nov 2006 20:16:08 +0000 (21:16 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 7 Dec 2006 20:46:20 +0000 (21:46 +0100)
This has been within #if 0 for a long time and is wrong anyway.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/sbp2.c

index f1f5de616d79cae1bad61db5201571c6c3bee3f6..2b3099477e99921b066497c2f4beefacf262b97e 100644 (file)
@@ -2545,21 +2545,6 @@ static void sbp2scsi_complete_command(struct scsi_id_instance_data *scsi_id,
                SCpnt->result = DID_BUS_BUSY << 16;
        }
 
-       /*
-        * If a unit attention occurs, return busy status so it gets
-        * retried... it could have happened because of a 1394 bus reset
-        * or hot-plug...
-        * XXX  DID_BUS_BUSY is actually a bad idea because it will defy
-        * the scsi layer's retry logic.
-        */
-#if 0
-       if ((scsi_status == SBP2_SCSI_STATUS_CHECK_CONDITION) &&
-           (SCpnt->sense_buffer[2] == UNIT_ATTENTION)) {
-               SBP2_DEBUG("UNIT ATTENTION - return busy");
-               SCpnt->result = DID_BUS_BUSY << 16;
-       }
-#endif
-
        /*
         * Tell scsi stack that we're done with this command
         */