aboutsummaryrefslogtreecommitdiffstats
path: root/net/wimax
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-04-15 01:58:06 -0400
committerDavid S. Miller <davem@davemloft.net>2012-04-15 12:44:40 -0400
commit95c961747284a6b83a5e2d81240e214b0fa3464d (patch)
treec7be86a00db3605a48a03109fafcbe31039ca2e0 /net/wimax
parent5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (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.c5
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
188static 188static
189void __check_new_state(enum wimax_st old_state, enum wimax_st new_state, 189void __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
425size_t wimax_addr_scnprint(char *addr_str, size_t addr_str_size, 425size_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],