diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2009-08-09 04:12:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 19:43:31 -0400 |
commit | e651f03afe833326faa0abe55948c1c6cfd0b8ac (patch) | |
tree | 77058921e3842568e885f23b7b6829c628a0051b /net/ipv6/udp.c | |
parent | 9ec04da7489d2c9ae01ea6e9b5fa313ccf3d35fb (diff) |
inet6: Conversion from u8 to int
This replaces assignments of the type "int on LHS" = "u8 on RHS" with
simpler code. The LHS can express all of the unsigned right hand side
values, hence the assigned value can not be negative.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index d79fa6724451..20d2ffc15f0d 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -946,11 +946,8 @@ do_udp_sendmsg: | |||
946 | hlimit = ip6_dst_hoplimit(dst); | 946 | hlimit = ip6_dst_hoplimit(dst); |
947 | } | 947 | } |
948 | 948 | ||
949 | if (tclass < 0) { | 949 | if (tclass < 0) |
950 | tclass = np->tclass; | 950 | tclass = np->tclass; |
951 | if (tclass < 0) | ||
952 | tclass = 0; | ||
953 | } | ||
954 | 951 | ||
955 | if (msg->msg_flags&MSG_CONFIRM) | 952 | if (msg->msg_flags&MSG_CONFIRM) |
956 | goto do_confirm; | 953 | goto do_confirm; |