Re: [PATCH net-next] ipvlan: Remove a useless comparison

2018-12-10 Thread David Miller
From: YueHaibing Date: Mon, 10 Dec 2018 19:25:38 +0800 > 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 alw

[PATCH net-next] ipvlan: Remove a useless comparison

2018-12-10 Thread YueHaibing
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 --- drivers/net/ipvlan/ipvlan_ma