From: Mathieu Maret Date: Wed, 19 Mar 2014 08:20:32 +0000 (+0100) Subject: staging: wlags49_h2: remove commented code in wl_netdev.c X-Git-Tag: MMI-PSA29.97-13-9~12500^2~80 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1f8221efe5234cafef52cfcc7db38a958f77000;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: wlags49_h2: remove commented code in wl_netdev.c Remove unused code under C99 comment style Signed-off-by: Mathieu Maret Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c index ae42c8eaba7e..d9f923708fa4 100644 --- a/drivers/staging/wlags49_h2/wl_netdev.c +++ b/drivers/staging/wlags49_h2/wl_netdev.c @@ -68,31 +68,14 @@ #include #include #include -// #include -// #include -// #include -// #include -// #include -//#include -// #include -// #include -// #include -// #include -// #include -// // #include - #include #include #include -// #include -// #include -// #include #include #include #include -// #include #include #include @@ -120,10 +103,6 @@ #define MTU_MAX (HCF_MAX_MSG - ETH_HLEN) #endif -//static int mtu = MTU_MAX; -//MODULE_PARM(mtu, "i"); -//MODULE_PARM_DESC(mtu, "MTU"); - /******************************************************************************* * macros ******************************************************************************/ @@ -159,16 +138,7 @@ ******************************************************************************/ int wl_init(struct net_device *dev) { -// unsigned long flags; -// struct wl_private *lp = wl_priv(dev); - DBG_PARAM(DbgInfo, "dev", "%s (0x%p)", dev->name, dev); - - /* Nothing to do, but grab the spinlock anyway just in case we ever need - this routine */ -// wl_lock( lp, &flags ); -// wl_unlock( lp, &flags ); - return 0; } // wl_init @@ -427,17 +397,12 @@ static void wl_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) { strlcpy(info->driver, DRIVER_NAME, sizeof(info->driver)); strlcpy(info->version, DRV_VERSION_STR, sizeof(info->version)); -// strlcpy(info.fw_version, priv->fw_name, -// sizeof(info.fw_version)); if (dev->dev.parent) { dev_set_name(dev->dev.parent, "%s", info->bus_info); - //strlcpy(info->bus_info, dev->dev.parent->bus_id, - // sizeof(info->bus_info)); } else { snprintf(info->bus_info, sizeof(info->bus_info), "PCMCIA FIXME"); -// "PCMCIA 0x%lx", priv->hw.iobase); } } // wl_get_drvinfo @@ -1237,8 +1202,6 @@ struct net_device *wl_device_alloc(void) ******************************************************************************/ void wl_device_dealloc(struct net_device *dev) { -// struct wl_private *lp = wl_priv(dev); - /* Dealloc the WDS ports */ WL_WDS_DEVICE_DEALLOC(lp); @@ -1832,7 +1795,6 @@ int wl_rx_dma(struct net_device *dev) struct sk_buff *skb; struct wl_private *lp = NULL; DESC_STRCT *desc, *desc_next; - //CFG_MB_INFO_RANGE2_STRCT x; /*------------------------------------------------------------------------*/ DBG_PARAM(DbgInfo, "dev", "%s (0x%p)", dev->name, dev);