Author: Fabio Estevam <fabio.estevam@freescale.com> PTR_ERR should access the value just tested by IS_ERR. The semantic patch that makes this change is available in scripts/coccinelle/tests/odd_ptr_err.cocci. Signed-off-by: Fabio Estevam Reviewed-by: Matthias Brugger Signed-off-by: Heiko Stuebner — arch/arm/mach-rockchip/pm.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-) diff –git a/arch/arm/mach-rockchip/pm.c b/arch/arm/mach-rockchip/pm.c index 156cd23..bee8c80 100644 — a/arch/arm/mach-rockchip/pm.c …