Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
David S. Miller
d1d182e0 e6373c4c

+2 -5
+2 -5
drivers/net/wimax/i2400m/usb-tx.c
··· 177 177 static 178 178 int i2400mu_txd(void *_i2400mu) 179 179 { 180 - int result = 0; 181 180 struct i2400mu *i2400mu = _i2400mu; 182 181 struct i2400m *i2400m = &i2400mu->i2400m; 183 182 struct device *dev = &i2400mu->usb_iface->dev; ··· 207 208 /* Yeah, we ignore errors ... not much we can do */ 208 209 i2400mu_tx(i2400mu, tx_msg, tx_msg_size); 209 210 i2400m_tx_msg_sent(i2400m); /* ack it, advance the FIFO */ 210 - if (result < 0) 211 - break; 212 211 } 213 212 214 213 spin_lock_irqsave(&i2400m->tx_lock, flags); 215 214 i2400mu->tx_kthread = NULL; 216 215 spin_unlock_irqrestore(&i2400m->tx_lock, flags); 217 216 218 - d_fnend(4, dev, "(i2400mu %p) = %d\n", i2400mu, result); 219 - return result; 217 + d_fnend(4, dev, "(i2400mu %p)\n", i2400mu); 218 + return 0; 220 219 } 221 220 222 221