Commit 9a3c243d authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Jeff Garzik
Browse files

fs_enet: Don't call NAPI functions when NAPI is not used.



fs_enet_close() calls napi_disable() unconditionally. This patch skips the
call when use_napi isn't set.

Signed-off-by: default avatarLaurent Pinchart <laurentp@cse-semaphore.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent c63eddb2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -835,6 +835,7 @@ static int fs_enet_close(struct net_device *dev)

	netif_stop_queue(dev);
	netif_carrier_off(dev);
	if (fep->fpi->use_napi)
		napi_disable(&fep->napi);
	phy_stop(fep->phydev);