diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-11-18 19:17:06 +0530 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-11-18 16:52:18 +0100 |
commit | 4e2061b1e1f6b8e698b36a6518b6f8c15edc4547 (patch) | |
tree | 0e6a35bca7ceeb843ae21fc29be280a398b7b43f /drivers/net/can/sja1000 | |
parent | efbd50d2f62fc1f69a3dcd153e63ba28cc8eb27f (diff) | |
download | op-kernel-dev-4e2061b1e1f6b8e698b36a6518b6f8c15edc4547.zip op-kernel-dev-4e2061b1e1f6b8e698b36a6518b6f8c15edc4547.tar.gz |
can: remove unused variable
these variable were only assigned some values, but then never
reused again.
so they are safe to be removed.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/sja1000')
-rw-r--r-- | drivers/net/can/sja1000/kvaser_pci.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/can/sja1000/kvaser_pci.c b/drivers/net/can/sja1000/kvaser_pci.c index 8ff3424..15c00fa 100644 --- a/drivers/net/can/sja1000/kvaser_pci.c +++ b/drivers/net/can/sja1000/kvaser_pci.c @@ -214,7 +214,7 @@ static int kvaser_pci_add_chan(struct pci_dev *pdev, int channel, struct net_device *dev; struct sja1000_priv *priv; struct kvaser_pci *board; - int err, init_step; + int err; dev = alloc_sja1000dev(sizeof(struct kvaser_pci)); if (dev == NULL) @@ -235,7 +235,6 @@ static int kvaser_pci_add_chan(struct pci_dev *pdev, int channel, if (channel == 0) { board->xilinx_ver = ioread8(board->res_addr + XILINX_VERINT) >> 4; - init_step = 2; /* Assert PTADR# - we're in passive mode so the other bits are not important */ @@ -264,8 +263,6 @@ static int kvaser_pci_add_chan(struct pci_dev *pdev, int channel, priv->irq_flags = IRQF_SHARED; dev->irq = pdev->irq; - init_step = 4; - dev_info(&pdev->dev, "reg_base=%p conf_addr=%p irq=%d\n", priv->reg_base, board->conf_addr, dev->irq); |