ieee1394: sbp2: remove duplicate 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:30 +0000 (21:46 +0100)
The same case is handled further below in sbp2scsi_complete_command.
Note, the second version behaves slightly different but looks
preferable.  It's an extremely unlikely case by the way.

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

index 2b30994..38abf03 100644 (file)
@@ -2484,17 +2484,6 @@ static void sbp2scsi_complete_command(struct scsi_id_instance_data *scsi_id,
        }
 
        /*
-        * If a bus reset is in progress and there was an error, don't
-        * complete the command, just let it get retried at the end of the
-        * bus reset.
-        */
-       if (!hpsb_node_entry_valid(scsi_id->ne)
-           && (scsi_status != SBP2_SCSI_STATUS_GOOD)) {
-               SBP2_ERR("Bus reset in progress - retry command later");
-               return;
-       }
-
-       /*
         * Switch on scsi status
         */
        switch (scsi_status) {