mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
[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
This commit is contained in:
parent
6534f93296
commit
7c895edb66
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue