Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 985538ee authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b485ce6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -203,7 +203,6 @@ static int mall_change(struct net *net, struct sk_buff *in_skb,

	*arg = (unsigned long) head;
	rcu_assign_pointer(tp->root, new);
	if (head)
	call_rcu(&head->rcu, mall_destroy_rcu);
	return 0;