Re: [PATCH] net: hns: mdio->irq is an array, so no need to check if it is null

From: David Miller
Date: Mon Aug 15 2016 - 16:39:08 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Mon, 15 Aug 2016 13:55:17 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> The null check on mdio->irq is redundant since mdio->irq is an array
> of PHY_MAX_ADDR ints and hence can never be null. Remove the redundant
> check.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied, thanks.