All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs: pin-control: Fix error path for control state example
@ 2021-03-28 16:42 Niklas Söderlund
  2021-04-08 14:03 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Niklas Söderlund @ 2021-03-28 16:42 UTC (permalink / raw)
  To: Linus Walleij, Jonathan Corbet, linux-doc
  Cc: linux-gpio, Niklas Söderlund

The error is constructed using the wrong variable.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
 Documentation/driver-api/pin-control.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/driver-api/pin-control.rst b/Documentation/driver-api/pin-control.rst
index c905b273e8331e8a..e2474425fb0c2ba6 100644
--- a/Documentation/driver-api/pin-control.rst
+++ b/Documentation/driver-api/pin-control.rst
@@ -1235,7 +1235,7 @@ default state like this::
 		foo->s = pinctrl_lookup_state(foo->p, PINCTRL_STATE_DEFAULT);
 		if (IS_ERR(foo->s)) {
 			/* FIXME: clean up "foo" here */
-			return PTR_ERR(s);
+			return PTR_ERR(foo->s);
 		}
 
 		ret = pinctrl_select_state(foo->s);
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] docs: pin-control: Fix error path for control state example
  2021-03-28 16:42 [PATCH] docs: pin-control: Fix error path for control state example Niklas Söderlund
@ 2021-04-08 14:03 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2021-04-08 14:03 UTC (permalink / raw)
  To: Niklas Söderlund
  Cc: Jonathan Corbet, Linux Doc Mailing List, open list:GPIO SUBSYSTEM

On Sun, Mar 28, 2021 at 6:42 PM Niklas Söderlund
<niklas.soderlund+renesas@ragnatech.se> wrote:

> The error is constructed using the wrong variable.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

Patch applied!

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-08 14:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-28 16:42 [PATCH] docs: pin-control: Fix error path for control state example Niklas Söderlund
2021-04-08 14:03 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.