Skip to contentSkip to conversation

zd1211rw: remove false assertion from zd_mac_clear()

PATCH Superseded Oliver Neukum 2 participants 2 messages Aug 8, 2019

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zd1211rw: remove false assertion from zd_mac_clear()

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

---
 drivers/net/wireless/zydas/zd1211rw/zd_mac.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/zydas/zd1211rw/zd_mac.c +0 -1
index da7e63fca9f5..a9999d10ae81 100644
@@ -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));
 }
 
Signature · 1 line
2.16.4
maintainer
#1 lore raw

From: Oliver Neukum <[email protected]>
Date: Thu, 8 Aug 2019 11:32:03 +0200

Quoted 5 lines

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

Please CC: the appropriate driver maitainers and mailing list as this is clearly specified in the MAINTAINERS file.

Thank you.

Quoted 19 lines
---
 drivers/net/wireless/zydas/zd1211rw/zd_mac.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/zydas/zd1211rw/zd_mac.c +0 -1
index da7e63fca9f5..a9999d10ae81 100644
@@ -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));
 }
 
Signature · 1 line
2.16.4