diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2015-09-25 08:42:00 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-10-05 17:54:16 +0200 |
commit | 5edfcee5ed73eb9537987c4ddb6bf062b6943b73 (patch) | |
tree | cffa5dcafdd456dd642107f3407c86a5907984f9 /net/mac80211/mesh.c | |
parent | 076cdcb12f784b2057f172b5caca641fafa67cdf (diff) | |
download | linux-5edfcee5ed73eb9537987c4ddb6bf062b6943b73.tar.bz2 |
mac80211: make ieee80211_new_mesh_header return unsigned
The function returns always non-negative values.
The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1].
[1]: http://permalink.gmane.org/gmane.linux.kernel/2046107
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 62b3e29e50f4..626e8de70842 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -606,9 +606,9 @@ int ieee80211_fill_mesh_addresses(struct ieee80211_hdr *hdr, __le16 *fc, * * Return the header length. */ -int ieee80211_new_mesh_header(struct ieee80211_sub_if_data *sdata, - struct ieee80211s_hdr *meshhdr, - const char *addr4or5, const char *addr6) +unsigned int ieee80211_new_mesh_header(struct ieee80211_sub_if_data *sdata, + struct ieee80211s_hdr *meshhdr, + const char *addr4or5, const char *addr6) { if (WARN_ON(!addr4or5 && addr6)) return 0; |