From: David S. Miller Date: Thu, 28 Jun 2012 04:28:14 +0000 (-0700) Subject: phy: Fix warning in get_phy_device(). X-Git-Tag: v3.6-rc1~125^2~361 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=160c85f0e050d92c0e42321aab2ffc343594e1c0;p=pandora-kernel.git phy: Fix warning in get_phy_device(). drivers/net/phy/phy_device.c: In function ‘get_phy_device’: drivers/net/phy/phy_device.c:340:14: warning: ‘phy_id’ may be used uninitialized in this function [-Wmaybe-uninitialized] GCC can't see that when we return zero we always initialize phy_id and that's the only path where we use it. Initialize phy_id to zero to shut it up. Signed-off-by: David S. Miller --- Reading git-diff-tree failed