cirrus: cs89x0: remove set but not used variable 'lp'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ethernet/cirrus/cs89x0.c: In function 'cs89x0_platform_probe':
drivers/net/ethernet/cirrus/cs89x0.c:1847:20: warning:
variable 'lp' set but not used [-Wunused-but-set-variable]
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 6751edeb87 ("cirrus: cs89x0: Use managed interfaces")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2889456498
commit
0846e1616f
@@ -1844,15 +1844,12 @@ cleanup_module(void)
|
|||||||
static int __init cs89x0_platform_probe(struct platform_device *pdev)
|
static int __init cs89x0_platform_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct net_device *dev = alloc_etherdev(sizeof(struct net_local));
|
struct net_device *dev = alloc_etherdev(sizeof(struct net_local));
|
||||||
struct net_local *lp;
|
|
||||||
void __iomem *virt_addr;
|
void __iomem *virt_addr;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (!dev)
|
if (!dev)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
lp = netdev_priv(dev);
|
|
||||||
|
|
||||||
dev->irq = platform_get_irq(pdev, 0);
|
dev->irq = platform_get_irq(pdev, 0);
|
||||||
if (dev->irq <= 0) {
|
if (dev->irq <= 0) {
|
||||||
dev_warn(&dev->dev, "interrupt resource missing\n");
|
dev_warn(&dev->dev, "interrupt resource missing\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user