From: Russell King Date: Sun, 24 Feb 2013 10:55:24 +0000 (+0000) Subject: ARM: cleanup: pwrdm_can_ever_lose_context() checking X-Git-Tag: omap-for-v3.10/timer-signed~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62f0f39b4aa2dce08f08797089e60d945448ca2b;p=pandora-kernel.git 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: Russell King --- Reading git-diff-tree failed