mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
748085fcbe
commit
0b491eee46
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue