]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit985538eee06f169bb13c7ecb1a7fcdeb700b05c7
treee00e4fffd31e0e771f02175fbb844ffbbb84ce6d
parent8b485ce69876c65db12ed390e7f9c0d2a64eff2c
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