Commit fc1f48ff authored by Johannes Berg's avatar Johannes Berg

cfg80211: fix integer signedness in chandef_primary_freqs()

The helper function can't ever create negative values, so use
u32 pointers as the function arguments as the caller does.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent dcc6c2f5
...@@ -115,7 +115,7 @@ bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef) ...@@ -115,7 +115,7 @@ bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef)
EXPORT_SYMBOL(cfg80211_chandef_valid); EXPORT_SYMBOL(cfg80211_chandef_valid);
static void chandef_primary_freqs(const struct cfg80211_chan_def *c, static void chandef_primary_freqs(const struct cfg80211_chan_def *c,
int *pri40, int *pri80) u32 *pri40, u32 *pri80)
{ {
int tmp; int tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment