iwlwifi: checking unknown HW type
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 17 Jul 2009 16:30:21 +0000 (09:30 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 Jul 2009 19:05:24 +0000 (15:05 -0400)
commitb23a0524a38b146f85be44ae0d71abd2a710f4ab
treeba0442f1689b6b39eed1b0d84b866a3a21adbb96
parente5108d075c705ed3336163d9ead2b8fe629f680d
iwlwifi: checking unknown HW type

When deciding NVM type, if the HW type is unknown, report error and exit
with -ENOENT. This check should prevent incorrect behavior by assuming
the wrong NVM type.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-eeprom.c