diff options
| author | Alfie Varghese <alfievarghese22@gmail.com> | 2026-07-14 19:19:21 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-17 14:18:36 +0200 |
| commit | 45b5a8372191774b842e98439d7e7efea0b0a78e (patch) | |
| tree | d07803ac21b03997367fbee0cf85b0147dcb384e /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | bc5ca34cf5a0dc61608876d403a898a29781e24d (diff) | |
staging: greybus: uart: return tty_alloc_driver() errors
gb_tty_init() maps any tty_alloc_driver() failure to -ENOMEM.
tty_alloc_driver() currently always returns -ENOMEM on failure,
so this does not change behavior in practice. However, returning
PTR_ERR(gb_tty_driver) is more correct and consistent with kernel
conventions, preserving any future error codes the function might
return.
Signed-off-by: Alfie Varghese <alfievarghese22@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260714134921.817-1-alfievarghese22@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
