We don't use this spin_lock so we can remove the dead code. Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 1f2fd9e76fe0..44e9c5e3dbc1 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -177,7 +177,6 @@ struct gsm_control { struct gsm_mux { struct tty_struct *tty; /* The tty our ldisc is bound to */ - spinlock_t lock; struct mutex mutex; unsigned int num; struct kref ref; @@ -2188,7 +2187,6 @@ static struct gsm_mux *gsm_alloc_mux(void) kfree(gsm); return NULL; } - spin_lock_init(&gsm->lock); mutex_init(&gsm->mutex); kref_init(&gsm->ref); INIT_LIST_HEAD(&gsm->tx_list);