Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd182574 authored by David S. Miller's avatar David S. Miller
Browse files

atm: eni: Kill set-but-unused variables.



The variable eni_dev is initialized but never subsequently used in
these two functions.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b3afe95
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -1469,10 +1469,7 @@ if (eni_boards) printk(KERN_INFO "loss: %ld\n",ENI_DEV(eni_boards)->lost);


static void bug_int(struct atm_dev *dev,unsigned long reason)
static void bug_int(struct atm_dev *dev,unsigned long reason)
{
{
	struct eni_dev *eni_dev;

	DPRINTK(">bug_int\n");
	DPRINTK(">bug_int\n");
	eni_dev = ENI_DEV(dev);
	if (reason & MID_DMA_ERR_ACK)
	if (reason & MID_DMA_ERR_ACK)
		printk(KERN_CRIT DEV_LABEL "(itf %d): driver error - DMA "
		printk(KERN_CRIT DEV_LABEL "(itf %d): driver error - DMA "
		    "error\n",dev->number);
		    "error\n",dev->number);
@@ -1900,7 +1897,6 @@ static void eni_close(struct atm_vcc *vcc)


static int eni_open(struct atm_vcc *vcc)
static int eni_open(struct atm_vcc *vcc)
{
{
	struct eni_dev *eni_dev;
	struct eni_vcc *eni_vcc;
	struct eni_vcc *eni_vcc;
	int error;
	int error;
	short vpi = vcc->vpi;
	short vpi = vcc->vpi;
@@ -1910,7 +1906,6 @@ static int eni_open(struct atm_vcc *vcc)
	EVENT("eni_open\n",0,0);
	EVENT("eni_open\n",0,0);
	if (!test_bit(ATM_VF_PARTIAL,&vcc->flags))
	if (!test_bit(ATM_VF_PARTIAL,&vcc->flags))
		vcc->dev_data = NULL;
		vcc->dev_data = NULL;
	eni_dev = ENI_DEV(vcc->dev);
	if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC)
	if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC)
		set_bit(ATM_VF_ADDR,&vcc->flags);
		set_bit(ATM_VF_ADDR,&vcc->flags);
	if (vcc->qos.aal != ATM_AAL0 && vcc->qos.aal != ATM_AAL5)
	if (vcc->qos.aal != ATM_AAL0 && vcc->qos.aal != ATM_AAL5)