Commit dc24abd4 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Get rid of NDEV_FMT/NDEV_ARG macros

Silly use-once macros that simply obfuscates the code.
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5e3a8299
...@@ -137,8 +137,6 @@ extern unsigned char MCS_rate_1R23A[16]; ...@@ -137,8 +137,6 @@ extern unsigned char MCS_rate_1R23A[16];
void _rtw_init_queue23a(struct rtw_queue *pqueue); void _rtw_init_queue23a(struct rtw_queue *pqueue);
#define NDEV_FMT "%s"
#define NDEV_ARG(ndev) ndev->name
#define ADPT_FMT "%s" #define ADPT_FMT "%s"
#define ADPT_ARG(adapter) adapter->pnetdev->name #define ADPT_ARG(adapter) adapter->pnetdev->name
#define FUNC_NDEV_FMT "%s(%s)" #define FUNC_NDEV_FMT "%s(%s)"
......
...@@ -2558,9 +2558,8 @@ static int rtw_cfg80211_add_monitor_if(struct rtw_adapter *padapter, char *name, ...@@ -2558,9 +2558,8 @@ static int rtw_cfg80211_add_monitor_if(struct rtw_adapter *padapter, char *name,
} }
if (pwdev_priv->pmon_ndev) { if (pwdev_priv->pmon_ndev) {
DBG_8723A(FUNC_ADPT_FMT " monitor interface exist: " NDEV_FMT DBG_8723A(FUNC_ADPT_FMT " monitor interface exist: %s\n",
"\n", FUNC_ADPT_ARG(padapter), FUNC_ADPT_ARG(padapter), pwdev_priv->pmon_ndev->name);
NDEV_ARG(pwdev_priv->pmon_ndev));
ret = -EBUSY; ret = -EBUSY;
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment