aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index 7707a2655994..6748a3fb9669 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -310,18 +310,18 @@ static ssize_t iwl_dbgfs_nvm_read(struct file *file,
310 return -ENODATA; 310 return -ENODATA;
311 } 311 }
312 312
313 ptr = priv->eeprom;
314 if (!ptr) {
315 IWL_ERR(priv, "Invalid EEPROM/OTP memory\n");
316 return -ENOMEM;
317 }
318
313 /* 4 characters for byte 0xYY */ 319 /* 4 characters for byte 0xYY */
314 buf = kzalloc(buf_size, GFP_KERNEL); 320 buf = kzalloc(buf_size, GFP_KERNEL);
315 if (!buf) { 321 if (!buf) {
316 IWL_ERR(priv, "Can not allocate Buffer\n"); 322 IWL_ERR(priv, "Can not allocate Buffer\n");
317 return -ENOMEM; 323 return -ENOMEM;
318 } 324 }
319
320 ptr = priv->eeprom;
321 if (!ptr) {
322 IWL_ERR(priv, "Invalid EEPROM/OTP memory\n");
323 return -ENOMEM;
324 }
325 pos += scnprintf(buf + pos, buf_size - pos, "NVM Type: %s\n", 325 pos += scnprintf(buf + pos, buf_size - pos, "NVM Type: %s\n",
326 (priv->nvm_device_type == NVM_DEVICE_TYPE_OTP) 326 (priv->nvm_device_type == NVM_DEVICE_TYPE_OTP)
327 ? "OTP" : "EEPROM"); 327 ? "OTP" : "EEPROM");