diff options
author | Mitch A Williams <[email protected]> | 2012-06-30 00:23:19 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2012-06-30 17:40:45 -0700 |
commit | 0e90b49ca4b891f085b57559a3071a4feefb496c (patch) | |
tree | f34c038e177f5ab0779870b6d2a40e0b155bc515 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 0c12d91b7064e16e96939243187b12fbd99caac7 (diff) |
igbvf: fix divide by zero
Using ethtool -C ethX rx-usecs 0 crashes with a divide by zero.
Refactor this function to fix this issue and make it more clear
what the intent of each conditional is. Add comment regarding
using a setting of zero.
CC: stable <[email protected]> [3.3+]
CC: David Ahern <[email protected]>
Signed-off-by: Mitch Williams <[email protected]>
Tested-by: Aaron Brown <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions