]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: rockchip: pm: Fix PTR_ERR() argument
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 14 Aug 2015 02:43:19 +0000 (23:43 -0300)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 24 Aug 2015 10:39:14 +0000 (12:39 +0200)
commit2a03c025fdea25a491c359b31d8a8c8d452b06d0
treefc34d4e13bcd331e5a8801e60ef5678c951960d0
parent9bb91ae970dd004393a3d7d09bdcc30dfe2f8693
ARM: rockchip: pm: Fix PTR_ERR() argument

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 <fabio.estevam@freescale.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/mach-rockchip/pm.c