[PATCH] ipw2200: fix ->eeprom[EEPROM_VERSION] check

priv->eeprom is a pointer.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Yi Zhu <yi.zhu@intel.com>
Cc: James Ketrenos <jketreno@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Alexey Dobriyan 2006-02-01 03:04:57 -08:00 коммит произвёл Linus Torvalds
Родитель ce5f8d70ba
Коммит 386093ef9a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2456,7 +2456,7 @@ static void ipw_eeprom_init_sram(struct ipw_priv *priv)
copy. Otherwise let the firmware know to perform the operation
on it's own
*/
if ((priv->eeprom + EEPROM_VERSION) != 0) {
if (priv->eeprom[EEPROM_VERSION] != 0) {
IPW_DEBUG_INFO("Writing EEPROM data into SRAM\n");
/* write the eeprom data to sram */