All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Rogers <irogers@google.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	 llvm@lists.linux.dev, Elkin Cruz <elkin@google.com>,
	Ian Rogers <irogers@google.com>
Subject: [PATCH 0/2] wifi: mac80211: Two return-value fixes from Clang warning audit
Date: Thu, 19 Nov 2026 09:09:09 -0800	[thread overview]
Message-ID: <cover.1795106967.git.irogers@google.com> (raw)

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(-)

-- 
2.56.1.708.g77570a6a1d-goog


             reply	other threads:[~2026-11-19 17:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 17:09 Ian Rogers [this message]
2026-11-19 17:09 ` [PATCH 1/2] wifi: mac80211: Return 0 from ieee80211_reconfig_nan_offload_de() Ian Rogers
2026-11-19 17:09 ` [PATCH 2/2] wifi: mac80211: Return NEG_TTLM_RES_REJECT when sdata is not in driver Ian Rogers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1795106967.git.irogers@google.com \
    --to=irogers@google.com \
    --cc=elkin@google.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.