Commit 8eaf8d99 authored by Gaurav Singh's avatar Gaurav Singh Committed by David S. Miller
Browse files

Remove redundant condition in qdisc_graft



parent cannot be NULL here since its in the else part
of the if (parent == NULL) condition. Remove the extra
check on parent pointer.

Signed-off-by: default avatarGaurav Singh <gaurav1086@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cd399838
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1093,8 +1093,7 @@ skip:
		int err;

		/* Only support running class lockless if parent is lockless */
		if (new && (new->flags & TCQ_F_NOLOCK) &&
		    parent && !(parent->flags & TCQ_F_NOLOCK))
		if (new && (new->flags & TCQ_F_NOLOCK) && !(parent->flags & TCQ_F_NOLOCK))
			qdisc_clear_nolock(new);

		if (!cops || !cops->graft)