diff options
author | Webb Scales <webbnh@hp.com> | 2015-01-23 16:44:50 -0600 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2015-02-02 09:57:43 -0800 |
commit | 8ebc92483211f49ee5f072d2e51de3e70ca05fc1 (patch) | |
tree | e41256b2ea640d0e7dbd039bdcc63eba6ae0cb9d /net/switchdev/switchdev.c | |
parent | ec5cbf0422500ada7682a95e5c379dd13dd3a74c (diff) |
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>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions