Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
pstore: Fix bool initialization/comparison
Browse files Browse the repository at this point in the history
Bool initializations should use true and false. Bool tests don't need
comparisons.

Signed-off-by: Thomas Meyer <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
  • Loading branch information
thomasmey authored and kees committed Dec 4, 2018
1 parent 3069637 commit 6959643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/pstore/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6959643

Please sign in to comment.