bpf: Use PTR_ERR_OR_ZERO in xsk_map_inc()
authorYueHaibing <yuehaibing@huawei.com>
Tue, 20 Aug 2019 01:36:52 +0000 (01:36 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 20 Aug 2019 14:03:52 +0000 (16:03 +0200)
commitede6bc88d6bbe16a938de2b00f60f4e03768c988
tree5f5343ea1f682eb7f73b6cd476e005115d98a985
parent1f7267232711dd2453f9ceccd41906657afbd825
bpf: Use PTR_ERR_OR_ZERO in xsk_map_inc()

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/xskmap.c