Thread (2 messages) 2 messages, 2 authors, 2006-09-21

Re: [PATCH] d80211: clean up those huge else if statements; use BUILD_BUG_ON

From: Jiri Benc <hidden>
Date: 2006-09-21 19:25:21

On Wed, 30 Aug 2006 10:41:00 +0200, Johannes Berg wrote:
This patch replaces the if (...) else if (...) else if (...) ...
statements I complained about earlier with switches.
On Wed, 30 Aug 2006 10:39:30 +0200, Johannes Berg wrote:
This patch makes d80211 use BUILD_BUG_ON instead of checking at module
initialisation time. This check really is only interesting while you
hack since if the module was built, then it's either an 'always true' or
'always false' comparison, hence useless to do it at runtime.
Both patches applied to my tree. Thanks!

 Jiri

-- 
Jiri Benc
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help