ethernet/arc/arc_emac - fix NAPI "work > weight" warning
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Tue, 13 Aug 2013 13:04:36 +0000 (17:04 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Aug 2013 00:00:45 +0000 (17:00 -0700)
commit9cff866e37eb47780bf34842fcf371e41c5a0639
treed4ebd719a73a9616c557d0395ceb9a48aee3aa2b
parent4221f40513233fa8edeef7fc82e44163fde03b9b
ethernet/arc/arc_emac - fix NAPI "work > weight" warning

Initially I improperly set a boundary for maximum number of input
packets to process on NAPI poll ("work") so it might be more than
expected amount ("weight").

This was really harmless but seeing WARN_ON_ONCE on every device boot is
not nice. So trivial fix ("<" instead of "<=") is here.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Mischa Jonker <mjonker@synopsys.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_main.c