]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: mdio->irq is an array, so no need to check if it is null
authorColin Ian King <colin.king@canonical.com>
Mon, 15 Aug 2016 12:55:17 +0000 (13:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 20:38:44 +0000 (13:38 -0700)
commit5a084e6138d2fef83620c353bb1a88749b2e1fed
tree84cddac5be991c9d0bb03ec64e89f2dcb56186af
parentcc050d08c3c821fdee9cc868647908d9ab6cdf49
net: hns: mdio->irq is an array, so no need to check if it is null

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@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c