[SCSI] advansys: Make advansys_board_found a little more readable
authorMatthew Wilcox <matthew@wil.cx>
Sun, 29 Jul 2007 23:30:28 +0000 (17:30 -0600)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:38:49 +0000 (14:38 -0400)
commitb2c16f586ee529e97ac63183e70e2bfd586a2f47
tree7dcbddc023b22fa6ff740f8217317288309f0d29
parent605fe5987f728e92e75ba12f7be01ffc3b132ad0
[SCSI] advansys: Make advansys_board_found a little more readable

 - Put all the error cleanup at the end of the function and goto the
   appropriate label
 - Split advansys_wide_init_chip out of advansys_board_found
 - Split advansys_wide_free_mem out of advansys_board_found.  Use it
   from advansys_release
 - Use GFP_KERNEL, not GFP_ATOMIC, when allocating memory during
   initialisation
 - Eliminate lots of PROC_FS ifdefs by removing the ifdefs around the prtbuf
   struct member

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/advansys.c