[SCSI] advansys: use memcpy instead of open-coded loop
commitd68f4321357165346fb15ef41dbbf9dce7894f29
authorMatthew Wilcox <matthew@wil.cx>
Thu, 26 Jul 2007 15:58:12 +0000 (26 11:58 -0400)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:39:52 +0000 (12 14:39 -0400)
tree81511511970607a4f7fb0ffb6e9b470df769991e
parent13ac2d9c791469d4af51aa65653ab0fbd0916fcc
[SCSI] advansys: use memcpy instead of open-coded loop

Use memcpy to initialise eep_config instead of a loop.  For
AdvInitFrom38C1600EEP where we need to modify the default EEPROM
configuration, do it after the loop, and do it using the structure
definition, not by finding the right byte.  I think it was wrong for
big-endian machines.

Also delete some non-useful comments and prototypes.

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