diff options
author | 2020-05-07 19:06:49 +0800 | |
---|---|---|
committer | 2020-05-07 15:20:55 +0100 | |
commit | 1137a96f9b5a8615296bd319151896c859ead292 (patch) | |
tree | 4502658e4545e9e125aa74835a430d42022ae5f1 /include/linux/kgdb.h | |
parent | kgdb: Drop malformed kernel doc comment (diff) | |
download | linux-1137a96f9b5a8615296bd319151896c859ead292.tar.gz linux-1137a96f9b5a8615296bd319151896c859ead292.tar.bz2 linux-1137a96f9b5a8615296bd319151896c859ead292.zip |
kgdb: Return true in kgdb_nmi_poll_knock()
Fix the following coccicheck warning:
include/linux/kgdb.h:301:54-55: WARNING: return of 0/1 in function
'kgdb_nmi_poll_knock' with return type bool
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20200507110649.37426-1-yanaijie@huawei.com
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'include/linux/kgdb.h')
-rw-r--r-- | include/linux/kgdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h index 4d6fe87fd38f..c2caee08e418 100644 --- a/include/linux/kgdb.h +++ b/include/linux/kgdb.h @@ -298,7 +298,7 @@ extern bool kgdb_nmi_poll_knock(void); #else static inline int kgdb_register_nmi_console(void) { return 0; } static inline int kgdb_unregister_nmi_console(void) { return 0; } -static inline bool kgdb_nmi_poll_knock(void) { return 1; } +static inline bool kgdb_nmi_poll_knock(void) { return true; } #endif extern int kgdb_register_io_module(struct kgdb_io *local_kgdb_io_ops); |