rfkill: add WARN and BUG_ON paranoia (v2)
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 26 Aug 2008 14:57:59 +0000 (11:57 -0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Aug 2008 20:24:10 +0000 (16:24 -0400)
commitf745ba03a12a1c4b98a88a96ab39d9b58ac677a2
treeb66455f17ac6c8cfc33711c71da793ae17209ada
parent01b510b9c29caf2134c31d2bc8c2c5cc73987eb6
rfkill: add WARN and BUG_ON paranoia (v2)

BUG_ON() and WARN() the heck out of buggy drivers calling into the rfkill
subsystem.

Also switch from WARN_ON(1) to the new descriptive WARN().

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/rfkill/rfkill.c