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

From: David Miller
Date: Mon Dec 10 2018 - 14:55:28 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
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 always false
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.