aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/atari_NCR5380.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2016-01-03 00:05:15 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2016-01-06 21:42:54 -0500
commit6323876f5539e808a293395b1960427c62d2436d (patch)
tree2fcf1bf178a075b7e048263f83af6ea52e48940e /drivers/scsi/atari_NCR5380.c
parent206cc031ad591f2759ba4e82d35fbb2050a2648b (diff)
ncr5380: Use return instead of goto in NCR5380_select()
The "failed" label in NCR5380_select() is not helpful. Some failures return 0, others -1. Use return instead of goto to improve clarity and brevity, like atari_NCR5380.c does. Fix the relevant comments. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Hannes Reinecke <hare@suse.com> Tested-by: Ondrej Zary <linux@rainbow-software.org> Tested-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/atari_NCR5380.c')
-rw-r--r--drivers/scsi/atari_NCR5380.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/atari_NCR5380.c b/drivers/scsi/atari_NCR5380.c
index df42610df6e4..6c382d1c67ff 100644
--- a/drivers/scsi/atari_NCR5380.c
+++ b/drivers/scsi/atari_NCR5380.c
@@ -1382,9 +1382,9 @@ static irqreturn_t NCR5380_intr(int irq, void *dev_id)
1382 * Inputs : instance - instantiation of the 5380 driver on which this 1382 * Inputs : instance - instantiation of the 5380 driver on which this
1383 * target lives, cmd - SCSI command to execute. 1383 * target lives, cmd - SCSI command to execute.
1384 * 1384 *
1385 * Returns : -1 if selection could not execute for some reason, 1385 * Returns : -1 if selection failed but should be retried.
1386 * 0 if selection succeeded or failed because the target 1386 * 0 if selection failed and should not be retried.
1387 * did not respond. 1387 * 0 if selection succeeded completely (hostdata->connected == cmd).
1388 * 1388 *
1389 * Side effects : 1389 * Side effects :
1390 * If bus busy, arbitration failed, etc, NCR5380_select() will exit 1390 * If bus busy, arbitration failed, etc, NCR5380_select() will exit