diff options
author | Krishna Kumar <krkumar2@in.ibm.com> | 2011-07-14 23:16:21 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-15 08:08:26 -0700 |
commit | f0c50c7c9a4b0e92a9189c498e4960919fe66d45 (patch) | |
tree | a892a0628983e819a7ee787a19fa0ed2d5ac79b9 | |
parent | 2af4ba85913bb1755a06193109917c3ddc130265 (diff) | |
download | linux-3.10-f0c50c7c9a4b0e92a9189c498e4960919fe66d45.tar.gz linux-3.10-f0c50c7c9a4b0e92a9189c498e4960919fe66d45.tar.bz2 linux-3.10-f0c50c7c9a4b0e92a9189c498e4960919fe66d45.zip |
Remove redundant variable/code in __qdisc_run
Remove redundant variable "work".
Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sched/sch_generic.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index d253c16a314..69fca279880 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -190,16 +190,14 @@ static inline int qdisc_restart(struct Qdisc *q) void __qdisc_run(struct Qdisc *q) { int quota = weight_p; - int work = 0; while (qdisc_restart(q)) { - work++; /* * Ordered by possible occurrence: Postpone processing if * 1. we've exceeded packet quota * 2. another process needs the CPU; */ - if (work >= quota || need_resched()) { + if (--quota <= 0 || need_resched()) { __netif_schedule(q); break; } |