From 9404c82b5ea3237f43732d8afd4d1c0dc8f0f3ed Mon Sep 17 00:00:00 2001 From: Grant Likely Date: Tue, 31 Mar 2009 20:17:03 +0000 Subject: [PATCH] net/fec_mpc52xx: Don't dereference phy_device if it is NULL The FEC Ethernet device isn't always attached to a phy. Be careful not to dereference phy_device if it is NULL. Also eliminates an unnecessary extra function from the ioctl path. Reported-by: Henk Stegeman Signed-off-by: Grant Likely Signed-off-by: David S. Miller --- Reading git-format-patch failed