ncr5380: Use return instead of goto in NCR5380_select()
authorFinn Thain <fthain@telegraphics.com.au>
Sun, 3 Jan 2016 05:05:15 +0000 (16:05 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jan 2016 02:42:54 +0000 (21:42 -0500)
commit6323876f5539e808a293395b1960427c62d2436d
tree2fcf1bf178a075b7e048263f83af6ea52e48940e
parent206cc031ad591f2759ba4e82d35fbb2050a2648b
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>
drivers/scsi/NCR5380.c
drivers/scsi/atari_NCR5380.c