]> err.no Git - linux-2.6/commitdiff
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 d91a2338877cbc108a650cf27df5f147a165de23..9372ec41ce844b6c6a5b58f89b41e21459587263 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;
 }