OSDN Git Service

net: bpfilter: Fix type cast and pointer warnings
authorShanthosh RK <shanthosh.rk@gmail.com>
Fri, 5 Oct 2018 15:27:48 +0000 (20:57 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 18:51:06 +0000 (11:51 -0700)
commit33aa8da1f8a7dc050b9d68f1db761ab787621065
tree1d14813926ccef392fa12afd43c007e4cec2108f
parent2c05d88818ab6571816b93edce4d53703870d7ae
net: bpfilter: Fix type cast and pointer warnings

Fixes the following Sparse warnings:

net/bpfilter/bpfilter_kern.c:62:21: warning: cast removes address space
of expression
net/bpfilter/bpfilter_kern.c:101:49: warning: Using plain integer as
NULL pointer

Signed-off-by: Shanthosh RK <shanthosh.rk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bpfilter/bpfilter_kern.c