mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
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>
This commit is contained in:
parent
091bb8ab51
commit
65a1c4fffa
3 changed files with 1 additions and 6 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue