[SCSI] qla4xxx: Code cleanup for read/update flash using BSG
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>
Mon, 1 Aug 2011 10:26:14 +0000 (03:26 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 27 Aug 2011 14:36:30 +0000 (08:36 -0600)
commitef7830bb62c9edf34fc4e849a53d7e87bf51de4a
treee2b1585eb1833328f696a7684c8f4b1e2204ecff
parent943c157b7934a3b9fcf5290328be3b84d1a1a104
[SCSI] qla4xxx: Code cleanup for read/update flash using BSG

- Corrected return status
- Added reset active check
- Removed unused dma_map_sg calls
- Added debug prints on failure

Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_bsg.c
drivers/scsi/qla4xxx/ql4_def.h