]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: cleanup: debugfs error handling
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 24 Feb 2013 10:52:18 +0000 (10:52 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 24 Feb 2013 10:52:18 +0000 (10:52 +0000)
commit8f04016d9d16d70c3034dd632efb58188b82aee1
tree312cd0c2676c14a97f67f020cce0ddf5fbd1d84d
parente18a4081c4a737c3f20ac9acd7e856173f2a7495
ARM: cleanup: debugfs error handling

Debugfs functions return NULL when they fail, or an error pointer
when not configured.  The intention behind the error pointer is that
it appears as a valid pointer to the caller, and so the caller
continues inspite of debugfs not being available.

Debugfs failure should only ever be checked with (!ptr) and not the
IS_ERR*() functions.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/pm-debug.c