iwlwifi: dvm: remove unused variable compiler warning in debugfs.c
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 9 Nov 2016 07:45:58 +0000 (09:45 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Jan 2017 07:39:01 +0000 (09:39 +0200)
commita43ae1de13f48831a3bd530e419f43390f3ba3c4
tree5164d4706396d98504db89d38f33a9da459371c3
parent18c44b271b672dd7961399ce6ad099eac5ae1a6a
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: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c