diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-01-28 15:34:23 +0200 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2022-02-18 10:40:50 +0200 |
commit | f0c864273849bafc08e0948319507bbd0bc0a7d7 (patch) | |
tree | f7fa08733db7fd57d1e4f9fca345b0a841bb81ed /drivers/net/wireless/intel/iwlwifi/mvm/d3.c | |
parent | 6da7ba3a5f6abd55c0d63306acb05a8a8b7d27bd (diff) | |
download | linux-f0c864273849bafc08e0948319507bbd0bc0a7d7.tar.gz linux-f0c864273849bafc08e0948319507bbd0bc0a7d7.tar.bz2 linux-f0c864273849bafc08e0948319507bbd0bc0a7d7.zip |
iwlwifi: prefer WIDE_ID() over iwl_cmd_id()
The order of arguments for iwl_cmd_id() is confusing, and the
version is always 0 and thus a useless argument. Prefer the
WIDE_ID() macro (which needs to be a macro due to use in switch
cases etc.) over the iwl_cmd_id() function.
Obviously done with spatch:
@@
expression G, C;
@@
-iwl_cmd_id(C, G, 0)
+WIDE_ID(G, C)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20220128153014.cc4f9d1a2e9b.Ieb023cd773ea22e819d1ef1c37ae857ecc1a839d@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/d3.c')
0 files changed, 0 insertions, 0 deletions