Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2022 19:29:58 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bc734377d9dd - main - qoriq_gpio_pin_setflags: Propagate error from qoriq_gpio_pin_configure.
Message-ID:  <202204181929.23IJTwsV016826@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=bc734377d9ddc1a405277d6afa8c0147e02194c6

commit bc734377d9ddc1a405277d6afa8c0147e02194c6
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-18 19:28:09 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-18 19:28:09 +0000

    qoriq_gpio_pin_setflags: Propagate error from qoriq_gpio_pin_configure.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D34854
---
 sys/dev/gpio/qoriq_gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/gpio/qoriq_gpio.c b/sys/dev/gpio/qoriq_gpio.c
index 8300a45aa249..3853f0f4bcb5 100644
--- a/sys/dev/gpio/qoriq_gpio.c
+++ b/sys/dev/gpio/qoriq_gpio.c
@@ -153,7 +153,7 @@ qoriq_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags)
 	GPIO_LOCK(sc);
 	ret = qoriq_gpio_pin_configure(dev, pin, flags);
 	GPIO_UNLOCK(sc);
-	return (0);
+	return (ret);
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204181929.23IJTwsV016826>