summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorThomas Meyer2017-10-07 16:02:21 +0200
committerKees Cook2018-12-04 01:52:35 +0100
commit69596433bc28a4642bdc84676f44cfa3b16d0588 (patch)
treebdc81454c86cece9376427fb609441c2f9da71d0 /fs
parentpstore/ram: Do not treat empty buffers as valid (diff)
downloadkernel-qcow2-linux-69596433bc28a4642bdc84676f44cfa3b16d0588.tar.gz
kernel-qcow2-linux-69596433bc28a4642bdc84676f44cfa3b16d0588.tar.xz
kernel-qcow2-linux-69596433bc28a4642bdc84676f44cfa3b16d0588.zip
pstore: Fix bool initialization/comparison
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/pstore/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/ftrace.c b/fs/pstore/ftrace.c
index 06aab07b6bb7..b8a0931568f8 100644
--- 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);