diff options
author | roel kluin <roel.kluin@gmail.com> | 2009-10-23 05:59:21 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-29 01:39:54 -0700 |
commit | 65a1c4fffaaf5ca166a1263d84ca664d5192cda6 (patch) | |
tree | 4b78359d2af0a8e0912addbdff6fa07856f25f95 /net/can | |
parent | 091bb8ab51c668635d1a75359019005921676881 (diff) | |
download | linux-65a1c4fffaaf5ca166a1263d84ca664d5192cda6.tar.gz linux-65a1c4fffaaf5ca166a1263d84ca664d5192cda6.tar.bz2 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')
-rw-r--r-- | net/can/raw.c | 2 |
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) { |