scsi: esp_scsi: Clean up control flow and dead code
authorFinn Thain <fthain@telegraphics.com.au>
Fri, 4 Aug 2017 05:43:19 +0000 (01:43 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Aug 2017 23:55:34 +0000 (19:55 -0400)
commit201c37d7bf121474ab08212ec0a1e9b163bdd74f
tree785a66cee35553b15b5e8ce69deaee0838a09db4
parent7640d91d285893a5cf1e62b2cd00f0884c401d93
scsi: esp_scsi: Clean up control flow and dead code

This patch improves readability. There are no functional changes.

Since this touches on a questionable ESP_INTR_DC conditional, add some
commentary to help others who may (as I did) find themselves chasing an
"Invalid Command" error after the device flags this condition.

This cleanup also eliminates a warning from "make W=1":
drivers/scsi/esp_scsi.c: In function 'esp_finish_select':
drivers/scsi/esp_scsi.c:1233:5: warning: variable 'orig_select_state' set but not used [-Wunused-but-set-variable]
  u8 orig_select_state;

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/esp_scsi.c
drivers/scsi/esp_scsi.h