aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-12-15 19:22:42 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-16 15:57:03 -0500
commitd1d182e00d72300e05b18e28372fab003d8d4a58 (patch)
treed69f95ad1fa28c3fd773043b2a7c7af27b676922 /drivers/net/wimax/i2400m
parente6373c4c0ecb3a944c34117a3daeac315d641b5f (diff)
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wimax/i2400m')
-rw-r--r--drivers/net/wimax/i2400m/usb-tx.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wimax/i2400m/usb-tx.c b/drivers/net/wimax/i2400m/usb-tx.c
index ac357acfb3e9..99ef81b3d5a5 100644
--- a/drivers/net/wimax/i2400m/usb-tx.c
+++ b/drivers/net/wimax/i2400m/usb-tx.c
@@ -177,7 +177,6 @@ retry:
177static 177static
178int i2400mu_txd(void *_i2400mu) 178int i2400mu_txd(void *_i2400mu)
179{ 179{
180 int result = 0;
181 struct i2400mu *i2400mu = _i2400mu; 180 struct i2400mu *i2400mu = _i2400mu;
182 struct i2400m *i2400m = &i2400mu->i2400m; 181 struct i2400m *i2400m = &i2400mu->i2400m;
183 struct device *dev = &i2400mu->usb_iface->dev; 182 struct device *dev = &i2400mu->usb_iface->dev;
@@ -208,16 +207,14 @@ int i2400mu_txd(void *_i2400mu)
208 /* Yeah, we ignore errors ... not much we can do */ 207 /* Yeah, we ignore errors ... not much we can do */
209 i2400mu_tx(i2400mu, tx_msg, tx_msg_size); 208 i2400mu_tx(i2400mu, tx_msg, tx_msg_size);
210 i2400m_tx_msg_sent(i2400m); /* ack it, advance the FIFO */ 209 i2400m_tx_msg_sent(i2400m); /* ack it, advance the FIFO */
211 if (result < 0)
212 break;
213 } 210 }
214 211
215 spin_lock_irqsave(&i2400m->tx_lock, flags); 212 spin_lock_irqsave(&i2400m->tx_lock, flags);
216 i2400mu->tx_kthread = NULL; 213 i2400mu->tx_kthread = NULL;
217 spin_unlock_irqrestore(&i2400m->tx_lock, flags); 214 spin_unlock_irqrestore(&i2400m->tx_lock, flags);
218 215
219 d_fnend(4, dev, "(i2400mu %p) = %d\n", i2400mu, result); 216 d_fnend(4, dev, "(i2400mu %p)\n", i2400mu);
220 return result; 217 return 0;
221} 218}
222 219
223 220