Unverified Commit 97e3d8ac authored by Antheas Kapenekakis's avatar Antheas Kapenekakis Committed by Ilpo Järvinen
Browse files

platform/x86: oxpec: Rename rval to ret in tt_toggle



Rename the variable `rval` to `ret` in the function for consistency.

Signed-off-by: default avatarAntheas Kapenekakis <lkml@antheas.dev>
Link: https://lore.kernel.org/r/20250425111821.88746-16-lkml@antheas.dev


Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 9230b3b8
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -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;
}