diff options
author | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2019-01-15 00:52:41 +0000 |
---|---|---|
committer | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2019-01-15 00:52:41 +0000 |
commit | 7c895edb6673b6cfe6ddcc024a5d2ab234bda7cc (patch) | |
tree | 4dcc5044aee33496cdb79cb18b65ac76584b315f /sys | |
parent | 6534f93296bab72b322d47b08509ff33ce87bbb7 (diff) | |
download | src-7c895edb6673b6cfe6ddcc024a5d2ab234bda7cc.tar.gz src-7c895edb6673b6cfe6ddcc024a5d2ab234bda7cc.zip |
[led] propagate error from set_led() to the caller
Do not lose error condition by always returning 0 from set_led.
None of the calls to set_led checks for return value at the moment so
none of API consumers in base is affected.
PR: 231567
Submitted by: Bertrand Petit <bsdpr@phoe.frmug.org>
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=343029
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/led/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c index b19727767093..e361646750cf 100644 --- a/sys/dev/led/led.c +++ b/sys/dev/led/led.c @@ -261,7 +261,7 @@ led_set(char const *name, char const *cmd) mtx_unlock(&led_mtx); if (sb != NULL) sbuf_delete(sb); - return (0); + return (error); } static struct cdevsw led_cdevsw = { |