OSDN Git Service

jump_label: Avoid unneeded casts in STATIC_KEY_INIT_{TRUE,FALSE}
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 13 Feb 2022 16:57:16 +0000 (01:57 +0900)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 16 Feb 2022 14:57:58 +0000 (15:57 +0100)
commitfe65deb56e552a8c9bf7f27860dbdeac12a36116
treefc6f012b36c5477212f0778d3bb0f0efd521a565
parentfb7275acd6fb988313dddd8d3d19efa70d9015ad
jump_label: Avoid unneeded casts in STATIC_KEY_INIT_{TRUE,FALSE}

Commit 3821fd35b58d ("jump_label: Reduce the size of struct static_key")
introduced the union to struct static_key.

It is more natual to set JUMP_TYPE_* to the .type field without casting.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220213165717.2354046-1-masahiroy@kernel.org
include/linux/jump_label.h