]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] advansys: use memcpy instead of open-coded loop
authorMatthew Wilcox <matthew@wil.cx>
Thu, 26 Jul 2007 15:58:12 +0000 (11:58 -0400)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:39:52 +0000 (14:39 -0400)
commitf88c890c2143669bc19321392badbcb043be58a2
tree81511511970607a4f7fb0ffb6e9b470df769991e
parent76ab27768eaedd8e8560ba83c06527ad3ac97c23
[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