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>
This commit is contained in:

committed by
David S. Miller

parent
9ec04da748
commit
e651f03afe
@@ -1037,8 +1037,6 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
|
||||
|
||||
case IPV6_TCLASS:
|
||||
val = np->tclass;
|
||||
if (val < 0)
|
||||
val = 0;
|
||||
break;
|
||||
|
||||
case IPV6_RECVTCLASS:
|
||||
|
Reference in New Issue
Block a user