From: Eran Harary Date: Tue, 1 Jul 2014 14:31:38 +0000 (+0300) Subject: iwlwifi: mvm: warn about empty OTP X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bdce40f006dc53bfdeeba4a4ff200d4c0cf5aac8;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git iwlwifi: mvm: warn about empty OTP Signed-off-by: Eran Harary Signed-off-by: Emmanuel Grumbach --- diff --git a/drivers/net/wireless/iwlwifi/mvm/nvm.c b/drivers/net/wireless/iwlwifi/mvm/nvm.c index 1f1a550828fa..b04805ccb443 100644 --- a/drivers/net/wireless/iwlwifi/mvm/nvm.c +++ b/drivers/net/wireless/iwlwifi/mvm/nvm.c @@ -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); }