pinctrl/pinconfig: fix misplaced goto
authorLaurent Meunier <laurent.meunier@st.com>
Wed, 24 Apr 2013 11:05:50 +0000 (13:05 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Apr 2013 15:00:14 +0000 (17:00 +0200)
This update contains a basic fix that went unseen through
test and review.

Signed-off-by: Laurent Meunier <laurent.meunier@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf.c

index 6f14b62ae8ba8f16d8d4492ee2105a96419278df..32f96808202a60b6675166ed537912847a86c62b 100644 (file)
@@ -769,8 +769,8 @@ static int pinconf_dbg_config_write(struct file *file,
        }
 
        if (!found) {
-               goto exit;
                count = -EINVAL;
+               goto exit;
        }
 
        if (pctldev)