Commit 386093ef9a6c88576d8b418bf1c8616d5e410a20
Committed by
Linus Torvalds
1 parent
ce5f8d70ba
Exists in
master
and in
4 other branches
[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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/net/wireless/ipw2200.c
... | ... | @@ -2456,7 +2456,7 @@ |
2456 | 2456 | copy. Otherwise let the firmware know to perform the operation |
2457 | 2457 | on it's own |
2458 | 2458 | */ |
2459 | - if ((priv->eeprom + EEPROM_VERSION) != 0) { | |
2459 | + if (priv->eeprom[EEPROM_VERSION] != 0) { | |
2460 | 2460 | IPW_DEBUG_INFO("Writing EEPROM data into SRAM\n"); |
2461 | 2461 | |
2462 | 2462 | /* write the eeprom data to sram */ |