net: use netdev_lock to protect netdev_txnotify_dev

since the type of sconn lock is rmutex, there is no need to release
sconn lock before TX

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2025-11-14 17:53:20 +08:00
committed by Xiang Xiao
parent eb5c8f4e9c
commit d377f6b788
20 changed files with 42 additions and 42 deletions
-3
View File
@@ -113,7 +113,6 @@ static void igmp_timeout_work(FAR void *arg)
* the timer is cancelled before sending the IGMP_LEAVE_GROUP during leave.
*/
net_lock();
if (!IS_IDLEMEMBER(group->flags))
{
/* Schedule (and forget) the Membership Report. NOTE:
@@ -136,8 +135,6 @@ static void igmp_timeout_work(FAR void *arg)
* once or twice after short delays [Unsolicited Report Interval]..."
*/
}
net_unlock();
}
/****************************************************************************