rfkill: add WARN and BUG_ON paranoia (v2)
commit7c0d45f2cb2903ed7355497577edc2ec87466886
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 13 May 2011 12:21:30 +0000 (13 09:21 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 13 May 2011 12:21:30 +0000 (13 09:21 -0300)
tree2ea8a71a239d80ca405d605b96baf046971f7803
parentcfe4f41d7a71bdde4fb4c617d421331463a1e553
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>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
net/rfkill/rfkill.c