]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: {cpu,dev}map: Change various functions return type from int to void
authorBjörn Töpel <bjorn.topel@intel.com>
Tue, 1 Sep 2020 08:39:28 +0000 (10:39 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 1 Sep 2020 13:45:58 +0000 (15:45 +0200)
commite287ba82dba000a06377421fda177cf9b6a1439b
tree6156c435b0a69ed8670a2df5fe655c7ca7925ad9
parentd1c39a1ae794c1ada824d571249c846df81e2b6d
bpf: {cpu,dev}map: Change various functions return type from int to void

The functions bq_enqueue(), bq_flush_to_queue(), and bq_xmit_all() in
{cpu,dev}map.c always return zero. Changing the return type from int
to void makes the code easier to follow.

Suggested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20200901083928.6199-1-bjorn.topel@gmail.com
kernel/bpf/cpumap.c
kernel/bpf/devmap.c