All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Maret <mathieu.maret@gmail.com>
To: pe1dnn@amsat.org, gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	Mathieu Maret <mathieu.maret@gmail.com>
Subject: [PATCH 2/5] staging: wlags49_h2: remove commented code in wl_netdev.c
Date: Wed, 19 Mar 2014 09:20:32 +0100	[thread overview]
Message-ID: <1395217235-2979-2-git-send-email-mathieu.maret@gmail.com> (raw)
In-Reply-To: <1395217235-2979-1-git-send-email-mathieu.maret@gmail.com>

Remove unused code under C99 comment style

Signed-off-by: Mathieu Maret <mathieu.maret@gmail.com>
---
 drivers/staging/wlags49_h2/wl_netdev.c | 38 ----------------------------------
 1 file changed, 38 deletions(-)

diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c
index ae42c8e..d9f9237 100644
--- a/drivers/staging/wlags49_h2/wl_netdev.c
+++ b/drivers/staging/wlags49_h2/wl_netdev.c
@@ -68,31 +68,14 @@
 #include <linux/slab.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
-// #include <linux/sched.h>
-// #include <linux/ptrace.h>
-// #include <linux/slab.h>
-// #include <linux/ctype.h>
-// #include <linux/string.h>
-//#include <linux/timer.h>
-// #include <linux/interrupt.h>
-// #include <linux/in.h>
-// #include <linux/delay.h>
-// #include <linux/skbuff.h>
-// #include <asm/io.h>
-// // #include <asm/bitops.h>
-
 #include <linux/netdevice.h>
 #include <linux/ethtool.h>
 #include <linux/etherdevice.h>
-// #include <linux/skbuff.h>
-// #include <linux/if_arp.h>
-// #include <linux/ioport.h>
 
 #include <debug.h>
 
 #include <hcf.h>
 #include <dhf.h>
-// #include <hcfdef.h>
 
 #include <wl_if.h>
 #include <wl_internal.h>
@@ -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);
-- 
1.9.0


  reply	other threads:[~2014-03-19  8:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-19  8:20 [PATCH 1/5] staging: wlags49_h2: reindent wl_netdev.c Mathieu Maret
2014-03-19  8:20 ` Mathieu Maret [this message]
2014-03-19  8:20 ` [PATCH 3/5] staging: wlags49_h2: Correct comment style in wl_netdev.c Mathieu Maret
2014-03-19  8:20 ` [PATCH 4/5] staging: wlags49_h2: Correct macro " Mathieu Maret
2014-03-19 15:36   ` Greg KH
     [not found]     ` <CA+6LquBzTYau34Xrq7j6OitZ0kFw7gvYepdTYJ9697r9XZNcSw@mail.gmail.com>
2014-03-19 16:53       ` Greg KH
2014-03-19  8:20 ` [PATCH 5/5] staging: wlags49_h2: Correct coding " Mathieu Maret

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1395217235-2979-2-git-send-email-mathieu.maret@gmail.com \
    --to=mathieu.maret@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pe1dnn@amsat.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.