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>
struct net_device *dev;
struct sja1000_priv *priv;
struct kvaser_pci *board;
struct net_device *dev;
struct sja1000_priv *priv;
struct kvaser_pci *board;
dev = alloc_sja1000dev(sizeof(struct kvaser_pci));
if (dev == NULL)
dev = alloc_sja1000dev(sizeof(struct kvaser_pci));
if (dev == NULL)
if (channel == 0) {
board->xilinx_ver =
ioread8(board->res_addr + XILINX_VERINT) >> 4;
if (channel == 0) {
board->xilinx_ver =
ioread8(board->res_addr + XILINX_VERINT) >> 4;
/* Assert PTADR# - we're in passive mode so the other bits are
not important */
/* Assert PTADR# - we're in passive mode so the other bits are
not important */
priv->irq_flags = IRQF_SHARED;
dev->irq = pdev->irq;
priv->irq_flags = IRQF_SHARED;
dev->irq = pdev->irq;
dev_info(&pdev->dev, "reg_base=%p conf_addr=%p irq=%d\n",
priv->reg_base, board->conf_addr, dev->irq);
dev_info(&pdev->dev, "reg_base=%p conf_addr=%p irq=%d\n",
priv->reg_base, board->conf_addr, dev->irq);
if (urb->actual_length > CPC_HEADER_SIZE) {
struct ems_cpc_msg *msg;
u8 *ibuf = urb->transfer_buffer;
if (urb->actual_length > CPC_HEADER_SIZE) {
struct ems_cpc_msg *msg;
u8 *ibuf = urb->transfer_buffer;
- u8 msg_count, again, start;
msg_count = ibuf[0] & ~0x80;
msg_count = ibuf[0] & ~0x80;
- again = ibuf[0] & 0x80;
{
struct esd_tx_urb_context *context = urb->context;
struct esd_usb2_net_priv *priv;
{
struct esd_tx_urb_context *context = urb->context;
struct esd_usb2_net_priv *priv;
struct net_device *netdev;
size_t size = sizeof(struct esd_usb2_msg);
struct net_device *netdev;
size_t size = sizeof(struct esd_usb2_msg);
priv = context->priv;
netdev = priv->netdev;
priv = context->priv;
netdev = priv->netdev;
/* free up our allocated buffer */
usb_free_coherent(urb->dev, size,
/* free up our allocated buffer */
usb_free_coherent(urb->dev, size,