aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sched/sch_api.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index d91a2338877c..9372ec41ce84 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -1088,14 +1088,13 @@ create_n_graft:
1088 } 1088 }
1089 1089
1090graft: 1090graft:
1091 if (1) { 1091 err = qdisc_graft(dev, p, skb, n, clid, q, NULL);
1092 err = qdisc_graft(dev, p, skb, n, clid, q, NULL); 1092 if (err) {
1093 if (err) { 1093 if (q)
1094 if (q) 1094 qdisc_destroy(q);
1095 qdisc_destroy(q); 1095 return err;
1096 return err;
1097 }
1098 } 1096 }
1097
1099 return 0; 1098 return 0;
1100} 1099}
1101 1100