diff options
| author | Sang-Heon Jeon <ekffu200098@gmail.com> | 2026-08-01 00:00:07 +0900 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-10-13 12:02:53 +0300 |
| commit | 497fa09961b40081c64853c5b81b4c8d967738c6 (patch) | |
| tree | 2b053ff4ccc1cdd833a773d78568f4b6e61d6f0b /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 6dea092b261f04d632411c2be52d13190f5f67b1 (diff) | |
platform/x86: toshiba_haps: Remove unnecessary ret in toshiba_haps_resume()
The return value of toshiba_haps_protection_level() is ignored because
ret is immediately overwritten by the toshiba_haps_reset_protection()
call.
And ret is only used by the check, which has no effect because both
branches return the same value. So remove the check and ret, and
return the value directly.
No functional change.
Found by the Coccinelle script from
scripts/coccinelle/misc/cond_return_no_effect.cocci.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Link: https://patch.msgid.link/20260731150010.1025556-1-ekffu200098@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
