[PATCH] ipw2200: fix ->eeprom[EEPROM_VERSION] check
authorAlexey Dobriyan <[email protected]>
Wed, 1 Feb 2006 11:04:57 +0000 (03:04 -0800)
committerLinus Torvalds <[email protected]>
Wed, 1 Feb 2006 16:53:11 +0000 (08:53 -0800)
priv->eeprom is a pointer.

Signed-off-by: Alexey Dobriyan <[email protected]>
Acked-by: Yi Zhu <[email protected]>
Cc: James Ketrenos <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/net/wireless/ipw2200.c

index 916b24c544e2ec662521ca45bbb8386408f9b4d6..14beab4bc91cba2e21a7af20a8a6cc6dbe8241b5 100644 (file)
@@ -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 */