iwlwifi: mvm: warn about empty OTP
authorEran Harary <eran.harary@intel.com>
Tue, 1 Jul 2014 14:31:38 +0000 (17:31 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 7 Jul 2014 18:41:07 +0000 (21:41 +0300)
Signed-off-by: Eran Harary <eran.harary@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/nvm.c

index 1f1a550828fafef201aa52cdc2f4c1f24aa5b51d..b04805ccb443d1a7b1532a96881a3d739933fd96 100644 (file)
@@ -530,6 +530,8 @@ int iwl_nvm_init(struct iwl_mvm *mvm, bool read_nvm_from_nic)
                        }
 #endif
                }
+               if (!size_read)
+                       IWL_ERR(mvm, "OTP is blank\n");
                kfree(nvm_buffer);
        }