diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-10-07 10:02:21 -0400 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2018-12-03 19:52:35 -0500 |
commit | 69596433bc28a4642bdc84676f44cfa3b16d0588 (patch) | |
tree | bdc81454c86cece9376427fb609441c2f9da71d0 /fs/pstore | |
parent | 30696378f68a9e3dad6bfe55938b112e72af00c2 (diff) |
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/pstore')
-rw-r--r-- | fs/pstore/ftrace.c | 2 |
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) | |||
148 | mutex_lock(&pstore_ftrace_lock); | 148 | mutex_lock(&pstore_ftrace_lock); |
149 | if (pstore_ftrace_enabled) { | 149 | if (pstore_ftrace_enabled) { |
150 | unregister_ftrace_function(&pstore_ftrace_ops); | 150 | unregister_ftrace_function(&pstore_ftrace_ops); |
151 | pstore_ftrace_enabled = 0; | 151 | pstore_ftrace_enabled = false; |
152 | } | 152 | } |
153 | mutex_unlock(&pstore_ftrace_lock); | 153 | mutex_unlock(&pstore_ftrace_lock); |
154 | 154 | ||