[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1370276449.2025.33.camel@joe-AO722>
Date: Mon, 03 Jun 2013 09:20:49 -0700
From: Joe Perches <joe@...ches.com>
To: Wei Yongjun <weiyj.lk@...il.com>
Cc: grant.likely@...aro.org, rob.herring@...xeda.com,
maxime.ripard@...e-electrons.com, davem@...emloft.net, sr@...x.de,
yongjun_wei@...ndmicro.com.cn, netdev@...r.kernel.org,
devicetree-discuss@...ts.ozlabs.org
Subject: Re: [PATCH -next] net: sun4i-emac: fix a typo in emac_probe()
On Mon, 2013-06-03 at 21:36 +0800, Wei Yongjun wrote:
> Just fixed a typo in emac_probe().
also fixed a memory leak.
> diff --git a/drivers/net/ethernet/allwinner/sun4i-emac.c b/drivers/net/ethernet/allwinner/sun4i-emac.c
[]
> @@ -821,7 +821,7 @@ static int emac_probe(struct platform_device *pdev)
> db->membase = of_iomap(np, 0);
> if (!db->membase) {
> dev_err(&pdev->dev, "failed to remap registers\n");
> - return -ENOMEM;
> + ret = -ENOMEM;
> goto out;
> }
out:
dev_err(db->dev, "not found (%d).\n", ret);
free_netdev(ndev);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists