]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: remove redundant null check on head
authorColin Ian King <colin.king@canonical.com>
Wed, 3 May 2017 13:50:40 +0000 (14:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 May 2017 15:01:30 +0000 (11:01 -0400)
commita1cc2513286c1014d54dd36dd355b8295250db0c
treee00e4fffd31e0e771f02175fbb844ffbbb84ce6d
parent99c32c3fa32f7b78f8f6cd4166e0217df75797ce
net/sched: remove redundant null check on head

head is previously null checked and so the 2nd null check on head
is redundant and therefore can be removed.

Detected by CoverityScan, CID#1399505 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_matchall.c