Skip to content
Commit 62f0f39b authored by Russell King's avatar Russell King
Browse files

ARM: cleanup: pwrdm_can_ever_lose_context() checking



pwrdm_can_ever_lose_context() is only ever called from the OMAP GPIO
code, and only with a pointer returned from omap_hwmod_get_pwrdm().
omap_hwmod_get_pwrdm() only ever returns NULL on error, so using
IS_ERR_OR_NULL() to validate the passed pointer is silly.  Use a
simpler !ptr check instead.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d808aa69
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment