projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c83dd5
)
zd1211rw: Replace spin_is_locked() with lockdep
author
Lance Roy
<
[email protected]
>
Wed, 3 Oct 2018 05:38:54 +0000
(22:38 -0700)
committer
Kalle Valo
<
[email protected]
>
Fri, 5 Oct 2018 08:35:05 +0000
(11:35 +0300)
lockdep_assert_held() is better suited to checking locking requirements,
since it won't get confused when someone else holds the lock. This is
also a step towards possibly removing spin_is_locked().
Signed-off-by: Lance Roy <
[email protected]
>
Cc: Daniel Drake <
[email protected]
>
Cc: Ulrich Kunitz <
[email protected]
>
Cc: Kalle Valo <
[email protected]
>
Cc: "David S. Miller" <
[email protected]
>
Cc: <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Kalle Valo <
[email protected]
>
drivers/net/wireless/zydas/zd1211rw/zd_mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/zydas/zd1211rw/zd_mac.c
b/drivers/net/wireless/zydas/zd1211rw/zd_mac.c
index 1f6d9f357e57de8d733e86de73ac90b64cf3ffd5..9ccd780695f0a6cb8a1eec04ffcc351942d0130e 100644
(file)
--- a/
drivers/net/wireless/zydas/zd1211rw/zd_mac.c
+++ b/
drivers/net/wireless/zydas/zd1211rw/zd_mac.c
@@
-235,7
+235,7
@@
void zd_mac_clear(struct zd_mac *mac)
{
flush_workqueue(zd_workqueue);
zd_chip_clear(&mac->chip);
-
ZD_ASSERT(!spin_is_locked(&mac->lock)
);
+
lockdep_assert_held(&mac->lock
);
ZD_MEMCLEAR(mac, sizeof(struct zd_mac));
}