diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-06-01 09:57:04 -0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-06-04 10:14:35 +0200 |
commit | 44a074ffe038a4953d8ff4091599ce997867820c (patch) | |
tree | 3fe545921c2467c97a029733fe2dcbcbf1597f7c /drivers/pinctrl/samsung | |
parent | 3944e7b78c7b1bfed7808692cc539496b3f94eea (diff) | |
download | talos-obmc-linux-44a074ffe038a4953d8ff4091599ce997867820c.tar.gz talos-obmc-linux-44a074ffe038a4953d8ff4091599ce997867820c.zip |
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>
Diffstat (limited to 'drivers/pinctrl/samsung')
-rw-r--r-- | drivers/pinctrl/samsung/pinctrl-samsung.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index ed165ba2eb2f..0fd20c5ffde9 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -806,7 +806,7 @@ static int samsung_pinctrl_parse_dt(struct platform_device *pdev, functions = samsung_pinctrl_create_functions(dev, drvdata, &func_cnt); if (IS_ERR(functions)) { dev_err(dev, "failed to parse pin functions\n"); - return PTR_ERR(groups); + return PTR_ERR(functions); } drvdata->pin_groups = groups; |