driver: ipvlan: Remove unnecessary ipvlan NULL check in ipvlan_count_rx
authorGao Feng <fgao@ikuai8.com>
Wed, 28 Dec 2016 08:47:42 +0000 (16:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2016 19:23:22 +0000 (14:23 -0500)
commit3ea35d3406d31a7389c2a299e28168c52040843a
treee3ff6f910b37da8f846d8559e41eeeaab3d132ef
parent8667398277afe5312ac6e70589c4c661545179c7
driver: ipvlan: Remove unnecessary ipvlan NULL check in ipvlan_count_rx

There are three functions which would invoke the ipvlan_count_rx. They
are ipvlan_process_multicast, ipvlan_rcv_frame, and ipvlan_nf_input.
The former two functions already use the ipvlan directly before
ipvlan_count_rx, and ipvlan_nf_input gets the ipvlan from
ipvl_addr->master, it is not possible to be NULL too.
So the ipvlan pointer check is unnecessary in ipvlan_count_rx.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_core.c