diff options
Diffstat (limited to 'drivers/net/gianfar_ethtool.c')
-rw-r--r-- | drivers/net/gianfar_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/gianfar_ethtool.c b/drivers/net/gianfar_ethtool.c index 9bda023c0235..ae8e5d3c6c1f 100644 --- a/drivers/net/gianfar_ethtool.c +++ b/drivers/net/gianfar_ethtool.c | |||
@@ -254,7 +254,7 @@ static unsigned int gfar_usecs2ticks(struct gfar_private *priv, unsigned int use | |||
254 | 254 | ||
255 | /* Make sure we return a number greater than 0 | 255 | /* Make sure we return a number greater than 0 |
256 | * if usecs > 0 */ | 256 | * if usecs > 0 */ |
257 | return ((usecs * 1000 + count - 1) / count); | 257 | return (usecs * 1000 + count - 1) / count; |
258 | } | 258 | } |
259 | 259 | ||
260 | /* Convert ethernet clock ticks to microseconds */ | 260 | /* Convert ethernet clock ticks to microseconds */ |
@@ -278,7 +278,7 @@ static unsigned int gfar_ticks2usecs(struct gfar_private *priv, unsigned int tic | |||
278 | 278 | ||
279 | /* Make sure we return a number greater than 0 */ | 279 | /* Make sure we return a number greater than 0 */ |
280 | /* if ticks is > 0 */ | 280 | /* if ticks is > 0 */ |
281 | return ((ticks * count) / 1000); | 281 | return (ticks * count) / 1000; |
282 | } | 282 | } |
283 | 283 | ||
284 | /* Get the coalescing parameters, and put them in the cvals | 284 | /* Get the coalescing parameters, and put them in the cvals |