|
@@ -396,7 +396,7 @@ static int amd8111e_set_coalesce(struct net_device * dev, enum coal_mode cmod)
|
|
event_count = coal_conf->rx_event_count;
|
|
event_count = coal_conf->rx_event_count;
|
|
if( timeout > MAX_TIMEOUT ||
|
|
if( timeout > MAX_TIMEOUT ||
|
|
event_count > MAX_EVENT_COUNT )
|
|
event_count > MAX_EVENT_COUNT )
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -EINVAL;
|
|
|
|
|
|
timeout = timeout * DELAY_TIMER_CONV;
|
|
timeout = timeout * DELAY_TIMER_CONV;
|
|
writel(VAL0|STINTEN, mmio+INTEN0);
|
|
writel(VAL0|STINTEN, mmio+INTEN0);
|
|
@@ -409,7 +409,7 @@ static int amd8111e_set_coalesce(struct net_device * dev, enum coal_mode cmod)
|
|
event_count = coal_conf->tx_event_count;
|
|
event_count = coal_conf->tx_event_count;
|
|
if( timeout > MAX_TIMEOUT ||
|
|
if( timeout > MAX_TIMEOUT ||
|
|
event_count > MAX_EVENT_COUNT )
|
|
event_count > MAX_EVENT_COUNT )
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -EINVAL;
|
|
|
|
|
|
|
|
|
|
timeout = timeout * DELAY_TIMER_CONV;
|
|
timeout = timeout * DELAY_TIMER_CONV;
|