Skip to content

Commit

Permalink
gianfar: fix obviously wrong #ifdef CONFIG_GFAR_NAPI placement
Browse files Browse the repository at this point in the history
Erroneous #ifdef introduced by 293c851
causing NAPI-less ethernet malfunctioning.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Anton Vorontsov authored and Jeff Garzik committed Oct 18, 2007
1 parent f860f49 commit db0e8e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,10 +956,12 @@ static int gfar_enet_open(struct net_device *dev)
}

err = startup_gfar(dev);
if (err)
if (err) {
#ifdef CONFIG_GFAR_NAPI
napi_disable(&priv->napi);
#endif
return err;
}

netif_start_queue(dev);

Expand Down

0 comments on commit db0e8e3

Please sign in to comment.