diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-04-15 01:58:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-15 12:44:40 -0400 |
commit | 95c961747284a6b83a5e2d81240e214b0fa3464d (patch) | |
tree | c7be86a00db3605a48a03109fafcbe31039ca2e0 /net/wimax | |
parent | 5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (diff) |
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wimax')
-rw-r--r-- | net/wimax/stack.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/wimax/stack.c b/net/wimax/stack.c index 3c65eae701c4..a6470ac39498 100644 --- a/net/wimax/stack.c +++ b/net/wimax/stack.c | |||
@@ -187,7 +187,7 @@ out: | |||
187 | 187 | ||
188 | static | 188 | static |
189 | void __check_new_state(enum wimax_st old_state, enum wimax_st new_state, | 189 | void __check_new_state(enum wimax_st old_state, enum wimax_st new_state, |
190 | unsigned allowed_states_bm) | 190 | unsigned int allowed_states_bm) |
191 | { | 191 | { |
192 | if (WARN_ON(((1 << new_state) & allowed_states_bm) == 0)) { | 192 | if (WARN_ON(((1 << new_state) & allowed_states_bm) == 0)) { |
193 | printk(KERN_ERR "SW BUG! Forbidden state change %u -> %u\n", | 193 | printk(KERN_ERR "SW BUG! Forbidden state change %u -> %u\n", |
@@ -425,7 +425,8 @@ static | |||
425 | size_t wimax_addr_scnprint(char *addr_str, size_t addr_str_size, | 425 | size_t wimax_addr_scnprint(char *addr_str, size_t addr_str_size, |
426 | unsigned char *addr, size_t addr_len) | 426 | unsigned char *addr, size_t addr_len) |
427 | { | 427 | { |
428 | unsigned cnt, total; | 428 | unsigned int cnt, total; |
429 | |||
429 | for (total = cnt = 0; cnt < addr_len; cnt++) | 430 | for (total = cnt = 0; cnt < addr_len; cnt++) |
430 | total += scnprintf(addr_str + total, addr_str_size - total, | 431 | total += scnprintf(addr_str + total, addr_str_size - total, |
431 | "%02x%c", addr[cnt], | 432 | "%02x%c", addr[cnt], |