Commit f0c50c7c authored by Krishna Kumar's avatar Krishna Kumar Committed by David S. Miller

Remove redundant variable/code in __qdisc_run

Remove redundant variable "work".
Signed-off-by: default avatarKrishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2af4ba85
...@@ -190,16 +190,14 @@ static inline int qdisc_restart(struct Qdisc *q) ...@@ -190,16 +190,14 @@ static inline int qdisc_restart(struct Qdisc *q)
void __qdisc_run(struct Qdisc *q) void __qdisc_run(struct Qdisc *q)
{ {
int quota = weight_p; int quota = weight_p;
int work = 0;
while (qdisc_restart(q)) { while (qdisc_restart(q)) {
work++;
/* /*
* Ordered by possible occurrence: Postpone processing if * Ordered by possible occurrence: Postpone processing if
* 1. we've exceeded packet quota * 1. we've exceeded packet quota
* 2. another process needs the CPU; * 2. another process needs the CPU;
*/ */
if (work >= quota || need_resched()) { if (--quota <= 0 || need_resched()) {
__netif_schedule(q); __netif_schedule(q);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment