]> 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)
commitbe1abba197926f7cfc54f8c274dc526c481ab56a
treee00e4fffd31e0e771f02175fbb844ffbbb84ce6d
parent7a44a5d5f1831b2af21c122e7121d8f90f5857bf
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