Re: [PATCH] net/sched: remove redundant null check on head

From: Jiri Pirko
Date: Wed May 03 2017 - 10:15:46 EST


Wed, May 03, 2017 at 03:50:40PM CEST, colin.king@xxxxxxxxxxxxx wrote:
>From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
>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@xxxxxxxxxxxxx>

Acked-by: Jiri Pirko <jiri@xxxxxxxxxxxx>