]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
selftests/bpf: Drop return in bpf_testmod_exit
authorGeliang Tang <tanggeliang@kylinos.cn>
Sun, 28 Jan 2024 11:43:57 +0000 (19:43 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 29 Jan 2024 15:41:29 +0000 (16:41 +0100)
bpf_testmod_exit() does not need to have a return value (given the void),
so this patch drops this useless 'return' in it.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/5765b287ea088f0c820f2a834faf9b20fb2f8215.1706442113.git.tanggeliang@kylinos.cn
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c

index 8befaf17d4542c2be324cfba76fbf325cea80318..6f163a0f1c94ccdd4451c1d036882922cc49dc6d 100644 (file)
@@ -619,7 +619,7 @@ static void bpf_testmod_exit(void)
        while (refcount_read(&prog_test_struct.cnt) > 1)
                msleep(20);
 
-       return sysfs_remove_bin_file(kernel_kobj, &bin_attr_bpf_testmod_file);
+       sysfs_remove_bin_file(kernel_kobj, &bin_attr_bpf_testmod_file);
 }
 
 module_init(bpf_testmod_init);