Skip to content

Commit

Permalink
Revert "n_gsm.c: add tx_lock in gsm_send"
Browse files Browse the repository at this point in the history
This reverts commit f96f7f7, 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>
  • Loading branch information
Greg Kroah-Hartman committed Jan 16, 2013
1 parent d73dfc6 commit 4e18585
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/tty/n_gsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 4e18585

Please sign in to comment.