mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 14:31:46 +00:00
SMC91x: delete unused local variable "lp"
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
6824a105d4
commit
51ac3beffd
1 changed files with 0 additions and 2 deletions
|
@ -2060,7 +2060,6 @@ static int smc_request_attrib(struct platform_device *pdev,
|
||||||
struct net_device *ndev)
|
struct net_device *ndev)
|
||||||
{
|
{
|
||||||
struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
|
struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
|
||||||
struct smc_local *lp = netdev_priv(ndev);
|
|
||||||
|
|
||||||
if (!res)
|
if (!res)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -2075,7 +2074,6 @@ static void smc_release_attrib(struct platform_device *pdev,
|
||||||
struct net_device *ndev)
|
struct net_device *ndev)
|
||||||
{
|
{
|
||||||
struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
|
struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
|
||||||
struct smc_local *lp = netdev_priv(ndev);
|
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
release_mem_region(res->start, ATTRIB_SIZE);
|
release_mem_region(res->start, ATTRIB_SIZE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue