]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hpsa: refactor duplicated scan completion code into a new routine
authorWebb Scales <webbnh@hp.com>
Fri, 23 Jan 2015 22:44:50 +0000 (16:44 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 2 Feb 2015 17:57:43 +0000 (09:57 -0800)
commit8ebc92483211f49ee5f072d2e51de3e70ca05fc1
treee41256b2ea640d0e7dbd039bdcc63eba6ae0cb9d
parentec5cbf0422500ada7682a95e5c379dd13dd3a74c
hpsa: refactor duplicated scan completion code into a new routine

Hoist the conditional out of do_not_scan_if_controller_locked_up() and
place it in the caller (this improves the code structure, making it
more consistent with other uses and enabling tail-call optimization);
rename the function to hpsa_scan_complete(), and use it at the end of
hpsa_scan_start() as well.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Signed-off-by: Webb Scales <webbnh@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c