diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-02-12 13:43:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-14 15:51:21 -0500 |
commit | 91f71fa5da00ff50398d8592f304cfec54eed550 (patch) | |
tree | 111ef09a637afce082aa679300780cfee5f763f9 /drivers/net/wireless/zd1211rw | |
parent | 8662b2518ff7995002378058488326ef7cb80de8 (diff) |
zd1211rw: add unlikely to ZD_ASSERT
Case assert is violated should be quite unlikely.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_def.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_def.h b/drivers/net/wireless/zd1211rw/zd_def.h index 6ac597ffd3b9..5463ca9ebc01 100644 --- a/drivers/net/wireless/zd1211rw/zd_def.h +++ b/drivers/net/wireless/zd1211rw/zd_def.h | |||
@@ -45,7 +45,7 @@ typedef u16 __nocast zd_addr_t; | |||
45 | #ifdef DEBUG | 45 | #ifdef DEBUG |
46 | # define ZD_ASSERT(x) \ | 46 | # define ZD_ASSERT(x) \ |
47 | do { \ | 47 | do { \ |
48 | if (!(x)) { \ | 48 | if (unlikely(!(x))) { \ |
49 | pr_debug("%s:%d ASSERT %s VIOLATED!\n", \ | 49 | pr_debug("%s:%d ASSERT %s VIOLATED!\n", \ |
50 | __FILE__, __LINE__, __stringify(x)); \ | 50 | __FILE__, __LINE__, __stringify(x)); \ |
51 | dump_stack(); \ | 51 | dump_stack(); \ |