diff options
author | David S. Miller <davem@davemloft.net> | 2009-12-08 13:44:44 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-08 13:44:44 -0800 |
commit | e61444d9209821469ed0d5a9128dcf2e494533ea (patch) | |
tree | 17b406ce83e925da011d2b463ddf278b821c365d /net/rfkill/core.c | |
parent | a252e749f1ae17e43ccc5824f7b1b5854417c98b (diff) | |
parent | 6a213afd058436dbbd01098d7422c6a0073c39b5 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'net/rfkill/core.c')
-rw-r--r-- | net/rfkill/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rfkill/core.c b/net/rfkill/core.c index 448e5a0fcc2..c218e07e5ca 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c @@ -579,6 +579,8 @@ static ssize_t rfkill_name_show(struct device *dev, static const char *rfkill_get_type_str(enum rfkill_type type) { + BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_FM + 1); + switch (type) { case RFKILL_TYPE_WLAN: return "wlan"; @@ -597,8 +599,6 @@ static const char *rfkill_get_type_str(enum rfkill_type type) default: BUG(); } - - BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_FM + 1); } static ssize_t rfkill_type_show(struct device *dev, |