projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcc6c2f
)
cfg80211: fix integer signedness in chandef_primary_freqs()
author
Johannes Berg
<johannes.berg@intel.com>
Wed, 29 Oct 2014 16:05:39 +0000
(17:05 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 29 Oct 2014 17:42:51 +0000
(18:42 +0100)
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>
net/wireless/chan.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/chan.c
b/net/wireless/chan.c
index 72d81e2154d590dbba26bf2d1e0868c5c4940e26..8f39e33e71bbc301d2fdae11f5ccb390f4f59048 100644
(file)
--- 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;