Skip to content

Commit

Permalink
cfg80211: fix integer signedness in chandef_primary_freqs()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jmberg-intel committed Oct 29, 2014
1 parent dcc6c2f commit fc1f48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/wireless/chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fc1f48f

Please sign in to comment.