aboutsummaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2009-10-23 01:59:21 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-29 04:39:54 -0400
commit65a1c4fffaaf5ca166a1263d84ca664d5192cda6 (patch)
tree4b78359d2af0a8e0912addbdff6fa07856f25f95 /net/can
parent091bb8ab51c668635d1a75359019005921676881 (diff)
net: Cleanup redundant tests on unsigned
optlen is unsigned so the `< 0' test is never true. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can')
-rw-r--r--net/can/raw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/can/raw.c b/net/can/raw.c
index 962fc9f1d0c7..6e77db58b9e6 100644
--- a/net/can/raw.c
+++ b/net/can/raw.c
@@ -424,8 +424,6 @@ static int raw_setsockopt(struct socket *sock, int level, int optname,
424 424
425 if (level != SOL_CAN_RAW) 425 if (level != SOL_CAN_RAW)
426 return -EINVAL; 426 return -EINVAL;
427 if (optlen < 0)
428 return -EINVAL;
429 427
430 switch (optname) { 428 switch (optname) {
431 429