sfc: avoid division by zero
authorEdward Cree <ecree@solarflare.com>
Wed, 17 Aug 2016 15:00:10 +0000 (16:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 06:28:22 +0000 (23:28 -0700)
commitc7b256f998f6d00d4548090aa16fb34e005828c1
tree88cf8546394cdd83551388bdc376b5c875510cbc
parentdca0aaf8472f15836a68bbed8a0ef9ea39e783aa
sfc: avoid division by zero

The division is already being done properly in efx_ef10_get_timer_config
which returns zero-on-success, unlike the old efx_ef10_get_sysclk_freq.

Fixes: d95e329a55ba ("sfc: get timer configuration from adapter")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c