diff options
| author | Luca Coelho <[email protected]> | 2016-11-09 08:02:46 +0000 |
|---|---|---|
| committer | Luca Coelho <[email protected]> | 2017-01-26 07:39:02 +0000 |
| commit | 758d1a8a8af04c70addb26761796019df267f420 (patch) | |
| tree | 43fc416770bede6f9df45887b1202f00cc0ebceb /drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |
| parent | iwlwifi: dvm: remove unused variable compiler warning in debugfs.c (diff) | |
| download | kernel-758d1a8a8af04c70addb26761796019df267f420.tar.gz kernel-758d1a8a8af04c70addb26761796019df267f420.zip | |
iwlwifi: mvm: mark ret as maybe_unused in iwl_dbgfs_fw_restart_write()
The value returned from iwl_mvm_send_cmd_pdu() in this function is not
used and always returns an error (which is the whole point of the
call). Tag the ret variable with __maybe_unused to avoid this compile
warning when W=1 is used:
/home/luca/iwlwifi/stack-dev/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c: In function ‘iwl_dbgfs_fw_restart_write’:
/home/luca/iwlwifi/stack-dev/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:875:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int ret;
^
Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
0 files changed, 0 insertions, 0 deletions
