]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa12b3df5fd38ffbfc7b6dc41a2dc5ca084fc5de
tree3fe545921c2467c97a029733fe2dcbcbf1597f7c
parent6c0c6607d41c8b557e08b13e871c49d534345080
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