Commit d1d182e0 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

wimax/i2400m: remove an unused variable

"result" isn't used.  We ignore errors here because there is not much we
can do about them.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e6373c4c
...@@ -177,7 +177,6 @@ int i2400mu_tx(struct i2400mu *i2400mu, struct i2400m_msg_hdr *tx_msg, ...@@ -177,7 +177,6 @@ int i2400mu_tx(struct i2400mu *i2400mu, struct i2400m_msg_hdr *tx_msg,
static static
int i2400mu_txd(void *_i2400mu) int i2400mu_txd(void *_i2400mu)
{ {
int result = 0;
struct i2400mu *i2400mu = _i2400mu; struct i2400mu *i2400mu = _i2400mu;
struct i2400m *i2400m = &i2400mu->i2400m; struct i2400m *i2400m = &i2400mu->i2400m;
struct device *dev = &i2400mu->usb_iface->dev; struct device *dev = &i2400mu->usb_iface->dev;
...@@ -208,16 +207,14 @@ int i2400mu_txd(void *_i2400mu) ...@@ -208,16 +207,14 @@ int i2400mu_txd(void *_i2400mu)
/* Yeah, we ignore errors ... not much we can do */ /* Yeah, we ignore errors ... not much we can do */
i2400mu_tx(i2400mu, tx_msg, tx_msg_size); i2400mu_tx(i2400mu, tx_msg, tx_msg_size);
i2400m_tx_msg_sent(i2400m); /* ack it, advance the FIFO */ i2400m_tx_msg_sent(i2400m); /* ack it, advance the FIFO */
if (result < 0)
break;
} }
spin_lock_irqsave(&i2400m->tx_lock, flags); spin_lock_irqsave(&i2400m->tx_lock, flags);
i2400mu->tx_kthread = NULL; i2400mu->tx_kthread = NULL;
spin_unlock_irqrestore(&i2400m->tx_lock, flags); spin_unlock_irqrestore(&i2400m->tx_lock, flags);
d_fnend(4, dev, "(i2400mu %p) = %d\n", i2400mu, result); d_fnend(4, dev, "(i2400mu %p)\n", i2400mu);
return result; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment