]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Use WARN() in fs/proc/
authorArjan van de Ven <arjan@linux.intel.com>
Sat, 26 Jul 2008 02:45:41 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:08 +0000 (12:00 -0700)
commit267e2a9c71b8e088ac307f9549f71468e86e26c1
treea2fc7be0ee2d712841b4564abf4e63d814642ec3
parent99fcd77d15357e8ba51005c25cc750b9c28b2688
Use WARN() in fs/proc/

Use WARN() instead of a printk+WARN_ON() pair; this way the message
becomes part of the warning section for better reporting/collection.
This way, the entire if() {} section can collapse into the WARN() as well.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Acked-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/generic.c