diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-03-03 20:23:47 +0100 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-03-12 09:57:49 +0200 |
commit | e111e9685790ccd9acce5de51fa7ed6b9ae8a746 (patch) | |
tree | 0d22b971df368538bc221242d2cc8d68c6b7ec9d /init/main.c | |
parent | 0c2ae049aef7fe1b8800db3f28c23520150bfd78 (diff) |
iwlwifi: mvm: simplify iwl_mvm_get_wakeup_status() return
The return value in iwl_mvm_get_wakeup_status() is a bit unclear in
that it's not obvious that we don't leak fw_status in some cases.
Use fw_status directly with ERR_PTR() and return only it, that way
the compiler has a chance of proving that it's uninitialized (if it
ever is due to new changes.)
Additionally, this removes a smatch warning since smatch couldn't
figure out that fw_status can't, in fact, leak here.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'init/main.c')
0 files changed, 0 insertions, 0 deletions