mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-26 03:17:48 +00:00
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>
This commit is contained in:
parent
efbd50d2f6
commit
4e2061b1e1
@ -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);
|
||||
|
||||
|
@ -434,10 +434,9 @@ static void ems_usb_read_bulk_callback(struct urb *urb)
|
||||
if (urb->actual_length > CPC_HEADER_SIZE) {
|
||||
struct ems_cpc_msg *msg;
|
||||
u8 *ibuf = urb->transfer_buffer;
|
||||
u8 msg_count, again, start;
|
||||
u8 msg_count, start;
|
||||
|
||||
msg_count = ibuf[0] & ~0x80;
|
||||
again = ibuf[0] & 0x80;
|
||||
|
||||
start = CPC_HEADER_SIZE;
|
||||
|
||||
|
@ -464,7 +464,6 @@ static void esd_usb2_write_bulk_callback(struct urb *urb)
|
||||
{
|
||||
struct esd_tx_urb_context *context = urb->context;
|
||||
struct esd_usb2_net_priv *priv;
|
||||
struct esd_usb2 *dev;
|
||||
struct net_device *netdev;
|
||||
size_t size = sizeof(struct esd_usb2_msg);
|
||||
|
||||
@ -472,7 +471,6 @@ static void esd_usb2_write_bulk_callback(struct urb *urb)
|
||||
|
||||
priv = context->priv;
|
||||
netdev = priv->netdev;
|
||||
dev = priv->usb2;
|
||||
|
||||
/* free up our allocated buffer */
|
||||
usb_free_coherent(urb->dev, size,
|
||||
|
Loading…
Reference in New Issue
Block a user