From: Mitch A Williams Date: Sat, 30 Jun 2012 00:23:19 +0000 (+0000) Subject: igbvf: fix divide by zero X-Git-Tag: v3.5-rc6~18^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e90b49ca4b891f085b57559a3071a4feefb496c;p=pandora-kernel.git 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 [3.3+] CC: David Ahern Signed-off-by: Mitch Williams Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed