commit | 160c85f0e050d92c0e42321aab2ffc343594e1c0 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Wed Jun 27 21:28:14 2012 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Jun 27 21:28:14 2012 -0700 |
tree | 1ba2d2bafc0eee95b4c747666fb8868c01ffeb19 | |
parent | d4fc6918f4b3cc844185f59fc518351525950449 [diff] |
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 <davem@davemloft.net>