summaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2009-10-23 05:59:21 +0000
committerDavid S. Miller <davem@davemloft.net>2009-10-29 01:39:54 -0700
commit65a1c4fffaaf5ca166a1263d84ca664d5192cda6 (patch)
tree4b78359d2af0a8e0912addbdff6fa07856f25f95 /net/can
parent091bb8ab51c668635d1a75359019005921676881 (diff)
downloadlinux-65a1c4fffaaf5ca166a1263d84ca664d5192cda6.tar.bz2
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,
if (level != SOL_CAN_RAW)
return -EINVAL;
- if (optlen < 0)
- return -EINVAL;
switch (optname) {