mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 19:41:19 +00:00
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: Gaurav Singh <gaurav1086@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cd39983857
commit
8eaf8d9940
1 changed files with 1 additions and 2 deletions
|
@ -1093,8 +1093,7 @@ skip:
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
/* Only support running class lockless if parent is lockless */
|
/* Only support running class lockless if parent is lockless */
|
||||||
if (new && (new->flags & TCQ_F_NOLOCK) &&
|
if (new && (new->flags & TCQ_F_NOLOCK) && !(parent->flags & TCQ_F_NOLOCK))
|
||||||
parent && !(parent->flags & TCQ_F_NOLOCK))
|
|
||||||
qdisc_clear_nolock(new);
|
qdisc_clear_nolock(new);
|
||||||
|
|
||||||
if (!cops || !cops->graft)
|
if (!cops || !cops->graft)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue