Commit a43ae1de authored by Luca Coelho's avatar Luca Coelho

iwlwifi: dvm: remove unused variable compiler warning in debugfs.c

When compiling with W=1, we get the following warning in debugfs.c:

/home/luca/iwlwifi/stack-dev/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c: In function ‘iwl_dbgfs_fw_restart_write’:
/home/luca/iwlwifi/stack-dev/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c:2313:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
  int ret;
      ^

Fix it by ignoring the return value in this case.
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 18c44b27
...@@ -2310,7 +2310,7 @@ static ssize_t iwl_dbgfs_fw_restart_write(struct file *file, ...@@ -2310,7 +2310,7 @@ static ssize_t iwl_dbgfs_fw_restart_write(struct file *file,
{ {
struct iwl_priv *priv = file->private_data; struct iwl_priv *priv = file->private_data;
bool restart_fw = iwlwifi_mod_params.restart_fw; bool restart_fw = iwlwifi_mod_params.restart_fw;
int ret; int __maybe_unused ret;
iwlwifi_mod_params.restart_fw = true; iwlwifi_mod_params.restart_fw = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment