Skip to content

wifi: mac80211: Two return-value fixes from Clang warning audit

Ian Rogers linux-wireless lkml llvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: mac80211: Return 0 from ieee80211_reconfig_nan_offload_de()net/mac80211/util.c+1 -10 replies
2/2wifi: mac80211: Return NEG_TTLM_RES_REJECT when sdata is not in drivernet/mac80211/driver-ops.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] wifi: mac80211: Two return-value fixes from Clang warning audit

Two return-value fixes in mac80211 found while auditing Clang warnings (-Wconditional-uninitialized and -Wimplicit-int-enum-cast) on an x86_64 allyesconfig build:

1. Return 0 instead of uninitialized res at the end of ieee80211_reconfig_nan_offload_de().
2. Return NEG_TTLM_RES_REJECT instead of -EIO in drv_can_activate_links() when sdata is not in driver.

Build-tested with LLVM=1 W=1 (-Werror); not runtime-tested on wireless hardware.

Ian Rogers (2):
wifi: mac80211: Return 0 from ieee80211_reconfig_nan_offload_de()
wifi: mac80211: Return NEG_TTLM_RES_REJECT when sdata is not in driver

 net/mac80211/driver-ops.h | 2 +-
 net/mac80211/util.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.56.1.708.g77570a6a1d-goog