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
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