summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-10-29 17:05:39 +0100
committerJohannes Berg <johannes.berg@intel.com>2014-10-29 18:42:51 +0100
commitfc1f48ffd5793e0a35c3b02375c2e2923e0f2bf3 (patch)
tree2ab973165a69be663b4bc967e3c24f915a6ea888 /net/wireless
parentdcc6c2f5165788fdc37be9a13a909e8c16f254ce (diff)
downloadop-kernel-dev-fc1f48ffd5793e0a35c3b02375c2e2923e0f2bf3.zip
op-kernel-dev-fc1f48ffd5793e0a35c3b02375c2e2923e0f2bf3.tar.gz
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: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/chan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c
index 72d81e2..8f39e33 100644
--- a/net/wireless/chan.c
+++ b/net/wireless/chan.c
@@ -115,7 +115,7 @@ bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef)
EXPORT_SYMBOL(cfg80211_chandef_valid);
static void chandef_primary_freqs(const struct cfg80211_chan_def *c,
- int *pri40, int *pri80)
+ u32 *pri40, u32 *pri80)
{
int tmp;
OpenPOWER on IntegriCloud