projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3069637
)
pstore: Fix bool initialization/comparison
author
Thomas Meyer
<thomas@m3y3r.de>
Sat, 7 Oct 2017 14:02:21 +0000
(16:02 +0200)
committer
Kees Cook
<keescook@chromium.org>
Tue, 4 Dec 2018 00:52:35 +0000
(16:52 -0800)
Bool initializations should use true and false. Bool tests don't need
comparisons.
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ftrace.c
patch
|
blob
|
history
diff --git
a/fs/pstore/ftrace.c
b/fs/pstore/ftrace.c
index 06aab07b6bb71bdabd8fa794c39a7b11cb8cb0a0..b8a0931568f8ab5ddcdf3f9e2721c777ed5c6daa 100644
(file)
--- a/
fs/pstore/ftrace.c
+++ b/
fs/pstore/ftrace.c
@@
-148,7
+148,7
@@
void pstore_unregister_ftrace(void)
mutex_lock(&pstore_ftrace_lock);
if (pstore_ftrace_enabled) {
unregister_ftrace_function(&pstore_ftrace_ops);
- pstore_ftrace_enabled =
0
;
+ pstore_ftrace_enabled =
false
;
}
mutex_unlock(&pstore_ftrace_lock);