]> err.no Git - linux-2.6/commit
ipw2200 - Fix bad ipw_write8() macro
authorTakashi Iwai <tiwai@suse.de>
Thu, 31 Jul 2008 17:02:06 +0000 (19:02 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 1 Aug 2008 19:31:35 +0000 (15:31 -0400)
commitfb55d887c5bd9054ec069534e1ef9eb8d9a983c6
tree35b838bd94257414e410b0aae5aea5803152bd9b
parent7dcdd073bf78bb6958bbc12a1a47754a0f3c4721
ipw2200 - Fix bad ipw_write8() macro

ipw_write8() can't be used alone with a loop because of a wrong definition.

  CC [M]  drivers/net/wireless/ipw2200.o
drivers/net/wireless/ipw2200.c: In function 'ipw_ethtool_set_eeprom':
drivers/net/wireless/ipw2200.c:10579: warning: array subscript is above array bounds
drivers/net/wireless/ipw2200.c: In function 'ipw_load':
drivers/net/wireless/ipw2200.c:2663: warning: array subscript is above array bounds

Add missing do {} while (0) to fix them.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2200.c