diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2009-01-21 21:35:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 21:35:43 +0100 |
commit | 0b491eee46012772cbf029450d123e933c2e7940 (patch) | |
tree | bb24c555235635dec746f8cce810d85b02cdf491 /drivers/net/wireless | |
parent | netfilter: ctnetlink: fix scheduling while atomic (diff) | |
download | linux-0b491eee46012772cbf029450d123e933c2e7940.tar.xz linux-0b491eee46012772cbf029450d123e933c2e7940.zip |
usbnet: allow type check of devdbg arguments in non-debug build
Improve usbnet's devdbg to always type-check diagnostic arguments,
like dev_dbg (device.h). This makes no change to the resulting size of
usbnet modules.
This patch also removes an #ifdef DEBUG directive from rndis_wlan so
it's devdbg statements are always type-checked at compile time.
Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 607ce9f61b54..ed93ac41297f 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c @@ -1649,9 +1649,7 @@ static char *rndis_translate_scan(struct net_device *dev, char *end_buf, struct ndis_80211_bssid_ex *bssid) { -#ifdef DEBUG struct usbnet *usbdev = netdev_priv(dev); -#endif u8 *ie; char *current_val; int bssid_len, ie_len, i; |