]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
fs_enet: Don't call NAPI functions when NAPI is not used.
authorLaurent Pinchart <laurentp@cse-semaphore.com>
Fri, 11 Apr 2008 12:05:50 +0000 (14:05 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Sat, 12 Apr 2008 05:52:38 +0000 (01:52 -0400)
commit9a3c243d7d87f401682247dbeff94067d814c192
tree810f3c35eb70b4197f8f57113b686402e5e6d25a
parentc63eddb200690023e7c67f4dd9f132ad91660517
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: Laurent Pinchart <laurentp@cse-semaphore.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/fs_enet/fs_enet-main.c