Explorar o código

pinctrl/pinconfig: fix misplaced goto

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>
Laurent Meunier %!s(int64=12) %!d(string=hai) anos
pai
achega
cb6d315dc3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/pinctrl/pinconf.c

+ 1 - 1
drivers/pinctrl/pinconf.c

@@ -769,8 +769,8 @@ static int pinconf_dbg_config_write(struct file *file,
 	}
 
 	if (!found) {
-		goto exit;
 		count = -EINVAL;
+		goto exit;
 	}
 
 	if (pctldev)