diff options
| author | Hans de Goede <[email protected]> | 2021-11-21 20:11:28 +0100 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2021-11-25 16:19:02 +0100 |
| commit | cb97f5f01d383ff166d50e356d07ac38d6033ac8 (patch) | |
| tree | 8daa40407e41d3cc8966012768ea720a2ef5f349 /tools/perf/scripts/python/netdev-times.py | |
| parent | 798682e236893a20e5674de02ede474373dd342d (diff) | |
platform/x86: thinkpad_acpi: Remove "goto err_exit" from hotkey_init()
The err_exit label just does a:
return (res < 0) ? res : -ENODEV;
And res is always < 0 when we go there (hotkey_mask_get() returns
either 0 or -EIO), so the goto-s can simply be replaced with
"return res".
Reviewed-by: Andy Shevchenko <[email protected]>
Tested-by: Mark Pearson <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions