Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a2eb736 authored by Oliver Neukum's avatar Oliver Neukum Committed by Kalle Valo
Browse files

zd1211rw: remove false assertion from zd_mac_clear()



The function is called before the lock which is asserted was ever used.
Just remove it.

Reported-by: default avatar <syzbot+74c65761783d66a9c97c@syzkaller.appspotmail.com>
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 73c742bb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -223,7 +223,6 @@ void zd_mac_clear(struct zd_mac *mac)
{
	flush_workqueue(zd_workqueue);
	zd_chip_clear(&mac->chip);
	lockdep_assert_held(&mac->lock);
	ZD_MEMCLEAR(mac, sizeof(struct zd_mac));
}