mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-03 21:04:05 +00:00
Minor cleanup
This commit is contained in:
parent
d8b264a27d
commit
f2b259a389
@ -10306,7 +10306,8 @@ void rtw_wiphy_free(struct wiphy *wiphy)
|
||||
|
||||
int rtw_wiphy_register(struct wiphy *wiphy)
|
||||
{
|
||||
RTW_INFO(FUNC_WIPHY_FMT"\n", FUNC_WIPHY_ARG(wiphy));
|
||||
|
||||
//RTW_INFO(FUNC_WIPHY_FMT"\n", FUNC_WIPHY_ARG(wiphy));
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)) || defined(RTW_VENDOR_EXT_SUPPORT)
|
||||
rtw_cfgvendor_attach(wiphy);
|
||||
|
@ -1431,7 +1431,7 @@ static u8 is_rtw_ndev(struct net_device *ndev)
|
||||
static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state, void *ptr)
|
||||
{
|
||||
struct net_device *ndev;
|
||||
_adapter *adapter
|
||||
_adapter *adapter = rtw_netdev_priv(ndev);
|
||||
|
||||
if (ptr == NULL)
|
||||
return NOTIFY_DONE;
|
||||
@ -1445,8 +1445,6 @@ static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state
|
||||
if (ndev == NULL)
|
||||
return NOTIFY_DONE;
|
||||
|
||||
adapter = rtw_netdev_priv(ndev);
|
||||
|
||||
if (!is_rtw_ndev(ndev))
|
||||
return NOTIFY_DONE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user