mirror of
https://github.com/amazingfate/rtl8723ds.git
synced 2025-10-13 20:36:03 +01:00
rtnl_is_locked() checks whether the lock is currently held by any task, not specifically by _this_ task so it is wrong to use it in the (un)register path. In both of these cases, examining the call stack shows that there is no way for rtnl_lock to be taken by the task running these functions, so remove the checks. Further, (un)register_netdev() have existed since the beginning of Git history so there's no reason for a version check here and we can always call the function that takes the lock itself and should never call the version which expects rtnl_lock to be held.