Skip to content

Commit dd18257

Browse files
committed
atm: eni: Kill set-but-unused variables.
The variable eni_dev is initialized but never subsequently used in these two functions. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8b3afe9 commit dd18257

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/atm/eni.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,10 +1469,7 @@ if (eni_boards) printk(KERN_INFO "loss: %ld\n",ENI_DEV(eni_boards)->lost);
14691469

14701470
static void bug_int(struct atm_dev *dev,unsigned long reason)
14711471
{
1472-
struct eni_dev *eni_dev;
1473-
14741472
DPRINTK(">bug_int\n");
1475-
eni_dev = ENI_DEV(dev);
14761473
if (reason & MID_DMA_ERR_ACK)
14771474
printk(KERN_CRIT DEV_LABEL "(itf %d): driver error - DMA "
14781475
"error\n",dev->number);
@@ -1900,7 +1897,6 @@ static void eni_close(struct atm_vcc *vcc)
19001897

19011898
static int eni_open(struct atm_vcc *vcc)
19021899
{
1903-
struct eni_dev *eni_dev;
19041900
struct eni_vcc *eni_vcc;
19051901
int error;
19061902
short vpi = vcc->vpi;
@@ -1910,7 +1906,6 @@ static int eni_open(struct atm_vcc *vcc)
19101906
EVENT("eni_open\n",0,0);
19111907
if (!test_bit(ATM_VF_PARTIAL,&vcc->flags))
19121908
vcc->dev_data = NULL;
1913-
eni_dev = ENI_DEV(vcc->dev);
19141909
if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC)
19151910
set_bit(ATM_VF_ADDR,&vcc->flags);
19161911
if (vcc->qos.aal != ATM_AAL0 && vcc->qos.aal != ATM_AAL5)

0 commit comments

Comments
 (0)