mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
Revert "n_gsm.c: add tx_lock in gsm_send"
This reverts commit f96f7f7f39
, at the
request of Jin.
Cc: xiaojin <jin.xiao@intel.com>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d73dfc6a41
commit
4e18585d51
@ -573,7 +573,6 @@ static void gsm_send(struct gsm_mux *gsm, int addr, int cr, int control)
|
||||
int len;
|
||||
u8 cbuf[10];
|
||||
u8 ibuf[3];
|
||||
unsigned long flags;
|
||||
|
||||
switch (gsm->encoding) {
|
||||
case 0:
|
||||
@ -603,9 +602,7 @@ static void gsm_send(struct gsm_mux *gsm, int addr, int cr, int control)
|
||||
WARN_ON(1);
|
||||
return;
|
||||
}
|
||||
spin_lock_irqsave(&gsm->tx_lock, flags);
|
||||
gsm->output(gsm, cbuf, len);
|
||||
spin_unlock_irqrestore(&gsm->tx_lock, flags);
|
||||
gsm_print_packet("-->", addr, cr, control, NULL, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user