]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pstore: Fix bool initialization/comparison
authorThomas Meyer <thomas@m3y3r.de>
Sat, 7 Oct 2017 14:02:21 +0000 (16:02 +0200)
committerKees 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

index 06aab07b6bb71bdabd8fa794c39a7b11cb8cb0a0..b8a0931568f8ab5ddcdf3f9e2721c777ed5c6daa 100644 (file)
@@ -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);