aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ipv6_sockglue.c
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2009-08-09 04:12:48 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-13 19:43:31 -0400
commite651f03afe833326faa0abe55948c1c6cfd0b8ac (patch)
tree77058921e3842568e885f23b7b6829c628a0051b /net/ipv6/ipv6_sockglue.c
parent9ec04da7489d2c9ae01ea6e9b5fa313ccf3d35fb (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/ipv6_sockglue.c')
-rw-r--r--net/ipv6/ipv6_sockglue.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c
index a7fdf9a27f15..c390b1eafb0b 100644
--- a/net/ipv6/ipv6_sockglue.c
+++ b/net/ipv6/ipv6_sockglue.c
@@ -1037,8 +1037,6 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
1037 1037
1038 case IPV6_TCLASS: 1038 case IPV6_TCLASS:
1039 val = np->tclass; 1039 val = np->tclass;
1040 if (val < 0)
1041 val = 0;
1042 break; 1040 break;
1043 1041
1044 case IPV6_RECVTCLASS: 1042 case IPV6_RECVTCLASS: