diff options
| author | Akinobu Mita <[email protected]> | 2010-08-09 17:20:35 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-08-09 20:45:06 -0700 |
| commit | b329becfc78b180d5c422c9cb24a6ab378603305 (patch) | |
| tree | e0a977fef2f05b0863c99738eb170ba852c97e1f /include/linux/timerqueue.h | |
| parent | 878ae1274944908e1863b06b03a2c94907afaa20 (diff) | |
char: add WARN_ON() in misc_deregister()
misc_deregister() returns an error only when it attempts to unregister
the device that is not registered. This is the driver's bug.
Most of the drivers don't check the return value of misc_deregister().
(It is not bad thing because most of kernel *_unregister() API always
succeed and do not return value)
So it is better to indicate the error by WARN_ON() in misc_deregister().
Signed-off-by: Akinobu Mita <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions