diff options
author | Antheas Kapenekakis <lkml@antheas.dev> | 2025-04-25 13:18:20 +0200 |
---|---|---|
committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2025-04-30 14:05:46 +0300 |
commit | 97e3d8ac258588f49b595e2a37b980ed84e478f1 (patch) | |
tree | c5d0c1d4136aeb1bd2024634ea641b5954d85e7e | |
parent | 9230b3b81b12acb2c1f0bbedc669d4f0546b21c3 (diff) |
platform/x86: oxpec: Rename rval to ret in tt_toggle
Rename the variable `rval` to `ret` in the function for consistency.
Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev>
Link: https://lore.kernel.org/r/20250425111821.88746-16-lkml@antheas.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
-rw-r--r-- | drivers/platform/x86/oxpec.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/platform/x86/oxpec.c b/drivers/platform/x86/oxpec.c index b8fe0bd60f85..389be064d245 100644 --- a/drivers/platform/x86/oxpec.c +++ b/drivers/platform/x86/oxpec.c @@ -406,19 +406,19 @@ static ssize_t tt_toggle_store(struct device *dev, size_t count) { bool value; - int rval; + int ret; - rval = kstrtobool(buf, &value); - if (rval) - return rval; + ret = kstrtobool(buf, &value); + if (ret) + return ret; if (value) { - rval = tt_toggle_enable(); + ret = tt_toggle_enable(); } else { - rval = tt_toggle_disable(); + ret = tt_toggle_disable(); } - if (rval) - return rval; + if (ret) + return ret; return count; } |