[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20180426055337.GB15229@mwanda>
Date: Thu, 26 Apr 2018 08:53:37 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Sun Peng <sun_peng@...sec.com.cn>
Cc: Jiri Slaby <jslaby@...e.com>, linux-kernel@...r.kernel.org,
security@...nel.org, Tony Lindgren <tony@...mide.com>,
Lars Poeschel <poeschel@...onage.de>,
Sascha Hauer <s.hauer@...gutronix.de>
Subject: [PATCH 3/4] tty: n_gsm: Remove an unused lock
We don't use this spin_lock so we can remove the dead code.
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.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);
Powered by blists - more mailing lists