Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Antheas Kapenekakis and committed by
Ilpo Järvinen
97e3d8ac 9230b3b8

+8 -8
+8 -8
drivers/platform/x86/oxpec.c
··· 406 406 size_t count) 407 407 { 408 408 bool value; 409 - int rval; 409 + int ret; 410 410 411 - rval = kstrtobool(buf, &value); 412 - if (rval) 413 - return rval; 411 + ret = kstrtobool(buf, &value); 412 + if (ret) 413 + return ret; 414 414 415 415 if (value) { 416 - rval = tt_toggle_enable(); 416 + ret = tt_toggle_enable(); 417 417 } else { 418 - rval = tt_toggle_disable(); 418 + ret = tt_toggle_disable(); 419 419 } 420 - if (rval) 421 - return rval; 420 + if (ret) 421 + return ret; 422 422 423 423 return count; 424 424 }