pinctrl: samsung: Fix the pointer in PTR_ERR()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 1 Jun 2015 12:57:04 +0000 (09:57 -0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Jun 2015 08:14:35 +0000 (10:14 +0200)
commit44a074ffe038a4953d8ff4091599ce997867820c
tree3fe545921c2467c97a029733fe2dcbcbf1597f7c
parent3944e7b78c7b1bfed7808692cc539496b3f94eea
pinctrl: samsung: Fix the pointer in PTR_ERR()

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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/samsung/pinctrl-samsung.c