Commit d24ed99
libbpf: remove unnecessary cast-to-void
The patches with fixes tags added a cast-to-void in the places when
the return value of a function was ignored.
This is not common practice in the kernel, and is therefore removed in
this patch.
Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Fixes: 5750902 ("libbpf: proper XSKMAP cleanup")
Fixes: 0e6741f ("libbpf: fix invalid munmap call")
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>1 parent 581b31c commit d24ed99
1 file changed
+10
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
463 | | - | |
| 462 | + | |
| 463 | + | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
695 | 693 | | |
696 | 694 | | |
697 | 695 | | |
| |||
717 | 715 | | |
718 | 716 | | |
719 | 717 | | |
720 | | - | |
721 | | - | |
722 | | - | |
| 718 | + | |
| 719 | + | |
723 | 720 | | |
724 | 721 | | |
725 | | - | |
726 | | - | |
727 | | - | |
| 722 | + | |
| 723 | + | |
728 | 724 | | |
729 | 725 | | |
730 | 726 | | |
| |||
0 commit comments