diff options
author | Ulrich Kunitz <kune@deine-taler.de> | 2006-08-12 13:00:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-08-14 15:43:23 -0400 |
commit | c48cf125146852424bfe8e02033c6065dd0a4021 (patch) | |
tree | a6c94c29648f1fe3b16ea5384812947f3e15819c /drivers/net/wireless/zd1211rw/zd_mac.h | |
parent | 943599ee2c3a018fd09c25d7a9e8703792dd618e (diff) |
[PATCH] zd1211rw: cleanups
Add static to 2 internal functions. Thanks goes to Adrian Bunk, who found that.
Also made some modifications to the clear functions:
After a discussion on the mailing list, I implemented this code to
have on the one hand sufficient test in debug mode, but on the
other hand reduce the overhead for structure clearing to a
minimum.
A new macro ZD_MEMCLEAR is introduced, which produces code if
DEBUG is set. Locks are not set anymore for structure clearing,
but in debug mode, there is a verification, that the locks have
not been set.
Finally, removed a misleading comment regarding locking in the disconnect
path.
Signed-off-by: Ulrich Kunitz <kune@deine-taler.de>
Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_mac.h')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.h b/drivers/net/wireless/zd1211rw/zd_mac.h index 71e382c589ee..082bcf8ec8dc 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.h +++ b/drivers/net/wireless/zd1211rw/zd_mac.h | |||
@@ -121,9 +121,9 @@ enum mac_flags { | |||
121 | }; | 121 | }; |
122 | 122 | ||
123 | struct zd_mac { | 123 | struct zd_mac { |
124 | struct net_device *netdev; | ||
125 | struct zd_chip chip; | 124 | struct zd_chip chip; |
126 | spinlock_t lock; | 125 | spinlock_t lock; |
126 | struct net_device *netdev; | ||
127 | /* Unlocked reading possible */ | 127 | /* Unlocked reading possible */ |
128 | struct iw_statistics iw_stats; | 128 | struct iw_statistics iw_stats; |
129 | u8 qual_average; | 129 | u8 qual_average; |