]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hpsa: clean up driver init
authorRobert Elliott <elliott@hp.com>
Fri, 6 Nov 2015 13:47:42 +0000 (05:47 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 19:47:45 +0000 (11:47 -0800)
commit1489133f337e3801abe9cb6e9c88e91ae16c49da
tree3bf0260cce06e8f2b5af447e13030c770c63b1fe
parent6e811ca8e5ad296334c07d7b44db56117ce49d08
hpsa: clean up driver init

Improve initialization error handling in hpsa_init_one
Clean up style and indent issues
Rename functions for consistency
Improve error messaging on allocations
Fix return status from hpsa_put_ctlr_into_performant_mode
Correct free order in hpsa_init_one using new function
   hpsa_free_performant_mode
Prevent inadvertent use of null pointers by nulling out the parent structures
   and zeroing out associated size variables.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Signed-off-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Orabug: 22075051
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/hpsa.c