bpf: minor cleanups for dev_map
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 22 Aug 2017 23:47:54 +0000 (01:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Aug 2017 04:26:29 +0000 (21:26 -0700)
commitaf4d045ceeca04946d89453206269aea6c338a8e
tree253eb5960b63588ed6a7f3fa4128c8507d8f4f77
parente4a8e817d3cb2a5108f8bb2e47e81eb25a2c5e30
bpf: minor cleanups for dev_map

Some minor code cleanups, while going over it I also noticed that
we're accounting the bitmap only for one CPU currently, so fix that
up as well.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/devmap.c