ipvlan: Remove a useless comparison
authorYueHaibing <yuehaibing@huawei.com>
Mon, 10 Dec 2018 11:25:38 +0000 (19:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Dec 2018 19:55:05 +0000 (11:55 -0800)
commitb1dd054dbb72551d42686862f935f96c3e2a53ea
tree4f05f8d47d93faabf6c070ed9a96e1326882006e
parentc1c8c27701b8fcc0cbbe4af0f9304df466b0123e
ipvlan: Remove a useless comparison

Fix following gcc warning:

drivers/net/ipvlan/ipvlan_main.c:543:12: warning:
 comparison is always false due to limited range of data type [-Wtype-limits]

'mode' is a u16 variable, IPVLAN_MODE_L2 is zero,
the comparison is always false

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_main.c