projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9230b3b
)
platform/x86: oxpec: Rename rval to ret in tt_toggle
author
Antheas Kapenekakis
<lkml@antheas.dev>
Fri, 25 Apr 2025 11:18:20 +0000
(13:18 +0200)
committer
Ilpo Järvinen
<ilpo.jarvinen@linux.intel.com>
Wed, 30 Apr 2025 11:05:46 +0000
(14:05 +0300)
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>
drivers/platform/x86/oxpec.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/oxpec.c
b/drivers/platform/x86/oxpec.c
index
b8fe0bd
..
389be06
100644
(file)
--- 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 r
val
;
+ int r
et
;
- r
val
= kstrtobool(buf, &value);
- if (r
val
)
- return r
val
;
+ r
et
= kstrtobool(buf, &value);
+ if (r
et
)
+ return r
et
;
if (value) {
- r
val
= tt_toggle_enable();
+ r
et
= tt_toggle_enable();
} else {
- r
val
= tt_toggle_disable();
+ r
et
= tt_toggle_disable();
}
- if (r
val
)
- return r
val
;
+ if (r
et
)
+ return r
et
;
return count;
}