From: Russell King Date: Mon, 7 Jul 2014 23:22:54 +0000 (+0100) Subject: net: fec: remove checking for NULL phy_dev in fec_enet_close() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~222^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=635cf17ce220aa4fef93528775646e0a181b2dc2;p=pandora-kernel.git net: fec: remove checking for NULL phy_dev in fec_enet_close() fep->phy_dev can not be NULL here for two reasons: - fec_enet_open() will have successfully connected the phy, or will have failed. - fec_enet_open() will have called phy_start(fep->phy_dev), which unconditionally dereferences this pointer. If it were to be NULL here, then fec_enet_open() will have already oopsed. Acked-by: Fugang Duan Signed-off-by: Russell King Signed-off-by: David S. Miller --- Reading git-diff-tree failed