aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/hashtab.c
diff options
context:
space:
mode:
authorYu Zhe <yuzhe@nfschina.com>2022-04-12 18:50:48 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2022-04-14 01:02:24 +0200
commit241d50ec5d79b94694adf13853c1f55d0f0b85e6 (patch)
treea758180d4c038af906d0b995abe4ae74b1455a08 /kernel/bpf/hashtab.c
parentMerge branch 'pr/bpf-sysctl' into bpf-next (diff)
downloadlinux-dev-241d50ec5d79b94694adf13853c1f55d0f0b85e6.tar.xz
linux-dev-241d50ec5d79b94694adf13853c1f55d0f0b85e6.zip
bpf: Remove unnecessary type castings
Remove/clean up unnecessary void * type castings. Signed-off-by: Yu Zhe <yuzhe@nfschina.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220413015048.12319-1-yuzhe@nfschina.com
Diffstat (limited to 'kernel/bpf/hashtab.c')
-rw-r--r--kernel/bpf/hashtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/hashtab.c b/kernel/bpf/hashtab.c
index 65877967f414..c68fbebc8c00 100644
--- a/kernel/bpf/hashtab.c
+++ b/kernel/bpf/hashtab.c
@@ -738,7 +738,7 @@ static void check_and_free_timer(struct bpf_htab *htab, struct htab_elem *elem)
*/
static bool htab_lru_map_delete_node(void *arg, struct bpf_lru_node *node)
{
- struct bpf_htab *htab = (struct bpf_htab *)arg;
+ struct bpf_htab *htab = arg;
struct htab_elem *l = NULL, *tgt_l;
struct hlist_nulls_head *head;
struct hlist_nulls_node *n;