aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sh_eth.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-06-23 12:02:38 -0400
committerDavid S. Miller <davem@davemloft.net>2011-06-28 00:03:26 -0400
commitec0d75518cb06261f1823fa2713fe52b9b26455e (patch)
tree24dc51aacb71ef6c35f16d2ac7888f739ba3a9e4 /drivers/net/sh_eth.c
parent72e85c45b9541e1f3d233e775da1dc6f68b85867 (diff)
net: sh_eth: tidyup compile warning
This patch tidyup below warning ${LINUX}/drivers/net/sh_eth.c:1773: warning: 'mdp' may be used uninitialized in this function Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sh_eth.c')
-rw-r--r--drivers/net/sh_eth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 8a72a979ee71..96a629f1678e 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -1770,7 +1770,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
1770 int ret, devno = 0; 1770 int ret, devno = 0;
1771 struct resource *res; 1771 struct resource *res;
1772 struct net_device *ndev = NULL; 1772 struct net_device *ndev = NULL;
1773 struct sh_eth_private *mdp; 1773 struct sh_eth_private *mdp = NULL;
1774 struct sh_eth_plat_data *pd; 1774 struct sh_eth_plat_data *pd;
1775 1775
1776 /* get base addr */ 1776 /* get base addr */
@@ -1888,7 +1888,7 @@ out_unregister:
1888 1888
1889out_release: 1889out_release:
1890 /* net_dev free */ 1890 /* net_dev free */
1891 if (mdp->tsu_addr) 1891 if (mdp && mdp->tsu_addr)
1892 iounmap(mdp->tsu_addr); 1892 iounmap(mdp->tsu_addr);
1893 if (ndev) 1893 if (ndev)
1894 free_netdev(ndev); 1894 free_netdev(ndev);