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

2016-08-15 Thread David Miller
From: Colin King Date: Mon, 15 Aug 2016 13:55:17 +0100 > From: Colin Ian King > > 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 Applied, thanks.

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

2016-08-15 Thread Colin King
From: Colin Ian King 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 --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 3 +-- 1 file changed, 1 insertion(+), 2