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>
This commit is contained in:
parent
8662b2518f
commit
91f71fa5da
|
@ -45,7 +45,7 @@ typedef u16 __nocast zd_addr_t;
|
|||
#ifdef DEBUG
|
||||
# define ZD_ASSERT(x) \
|
||||
do { \
|
||||
if (!(x)) { \
|
||||
if (unlikely(!(x))) { \
|
||||
pr_debug("%s:%d ASSERT %s VIOLATED!\n", \
|
||||
__FILE__, __LINE__, __stringify(x)); \
|
||||
dump_stack(); \
|
||||
|
|
Loading…
Reference in New Issue