pkt_sched: remove bogus block (cleanup)
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Tue, 19 Aug 2008 05:30:01 +0000 (22:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Aug 2008 05:30:01 +0000 (22:30 -0700)
...Last block local var got just deleted.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c

index d91a233..9372ec4 100644 (file)
@@ -1088,14 +1088,13 @@ create_n_graft:
        }
 
 graft:
-       if (1) {
-               err = qdisc_graft(dev, p, skb, n, clid, q, NULL);
-               if (err) {
-                       if (q)
-                               qdisc_destroy(q);
-                       return err;
-               }
+       err = qdisc_graft(dev, p, skb, n, clid, q, NULL);
+       if (err) {
+               if (q)
+                       qdisc_destroy(q);
+               return err;
        }
+
        return 0;
 }