]> err.no Git - linux-2.6/commit
Use WARN() in fs/sysfs
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:07 +0000 (12:00 -0700)
commit99fcd77d15357e8ba51005c25cc750b9c28b2688
tree403293819dc7bcd854c50d8c486a1fdbbf9711a2
parent5c752ad9f35910ff1912b3f3ae82878178ddc432
Use WARN() in fs/sysfs

Use WARN() instead of a printk+WARN_ON() pair; this way the message becomes
part of the warning section for better reporting/collection.  Also, with this,
one fo the if() sections collapses entirely into the WARN().

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/sysfs/dir.c
fs/sysfs/file.c
fs/sysfs/group.c