summaryrefslogtreecommitdiffstats
path: root/net/can/raw.c
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2009-10-23 07:59:21 +0200
committerDavid S. Miller <davem@davemloft.net>2009-10-29 09:39:54 +0100
commit65a1c4fffaaf5ca166a1263d84ca664d5192cda6 (patch)
tree4b78359d2af0a8e0912addbdff6fa07856f25f95 /net/can/raw.c
parentnet: Cleanup redundant tests on unsigned (diff)
downloadlinux-65a1c4fffaaf5ca166a1263d84ca664d5192cda6.tar.xz
linux-65a1c4fffaaf5ca166a1263d84ca664d5192cda6.zip
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/raw.c')
-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) {