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/tipc/socket.c | |
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/tipc/socket.c')
-rw-r--r-- | net/tipc/socket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 29e957f64458..bcb3314ef164 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -535,7 +535,7 @@ static int send_msg(struct kiocb *iocb, struct socket *sock, | |||
535 | (dest->family != AF_TIPC))) | 535 | (dest->family != AF_TIPC))) |
536 | return -EINVAL; | 536 | return -EINVAL; |
537 | if ((total_len > TIPC_MAX_USER_MSG_SIZE) || | 537 | if ((total_len > TIPC_MAX_USER_MSG_SIZE) || |
538 | (m->msg_iovlen > (unsigned)INT_MAX)) | 538 | (m->msg_iovlen > (unsigned int)INT_MAX)) |
539 | return -EMSGSIZE; | 539 | return -EMSGSIZE; |
540 | 540 | ||
541 | if (iocb) | 541 | if (iocb) |
@@ -647,7 +647,7 @@ static int send_packet(struct kiocb *iocb, struct socket *sock, | |||
647 | return send_msg(iocb, sock, m, total_len); | 647 | return send_msg(iocb, sock, m, total_len); |
648 | 648 | ||
649 | if ((total_len > TIPC_MAX_USER_MSG_SIZE) || | 649 | if ((total_len > TIPC_MAX_USER_MSG_SIZE) || |
650 | (m->msg_iovlen > (unsigned)INT_MAX)) | 650 | (m->msg_iovlen > (unsigned int)INT_MAX)) |
651 | return -EMSGSIZE; | 651 | return -EMSGSIZE; |
652 | 652 | ||
653 | if (iocb) | 653 | if (iocb) |
@@ -734,8 +734,8 @@ static int send_stream(struct kiocb *iocb, struct socket *sock, | |||
734 | goto exit; | 734 | goto exit; |
735 | } | 735 | } |
736 | 736 | ||
737 | if ((total_len > (unsigned)INT_MAX) || | 737 | if ((total_len > (unsigned int)INT_MAX) || |
738 | (m->msg_iovlen > (unsigned)INT_MAX)) { | 738 | (m->msg_iovlen > (unsigned int)INT_MAX)) { |
739 | res = -EMSGSIZE; | 739 | res = -EMSGSIZE; |
740 | goto exit; | 740 | goto exit; |
741 | } | 741 | } |