diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-07 06:56:56 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-28 09:32:32 -0500 |
commit | dc88922e0a2fab90c478fbea61880acef8a06a32 (patch) | |
tree | e9e7b782cd9d899698ed289ff2495e2e65fcb42a | |
parent | 525ba62c96abec9130b8edb877d1128864cee01c (diff) |
tty: n_gsm: remove redundant pointer gsm
Pointer gsm is assigned a value that is never read, hence it is
redundant and can be removed. Cleans up clang warning:
drivers/tty/n_gsm.c:2979:2: warning: Value stored to 'gsm' is never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/n_gsm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 5131bdc9e765..48e791d95f76 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c | |||
@@ -2955,7 +2955,6 @@ static int gsmtty_open(struct tty_struct *tty, struct file *filp) | |||
2955 | static void gsmtty_close(struct tty_struct *tty, struct file *filp) | 2955 | static void gsmtty_close(struct tty_struct *tty, struct file *filp) |
2956 | { | 2956 | { |
2957 | struct gsm_dlci *dlci = tty->driver_data; | 2957 | struct gsm_dlci *dlci = tty->driver_data; |
2958 | struct gsm_mux *gsm; | ||
2959 | 2958 | ||
2960 | if (dlci == NULL) | 2959 | if (dlci == NULL) |
2961 | return; | 2960 | return; |
@@ -2964,7 +2963,6 @@ static void gsmtty_close(struct tty_struct *tty, struct file *filp) | |||
2964 | mutex_lock(&dlci->mutex); | 2963 | mutex_lock(&dlci->mutex); |
2965 | gsm_destroy_network(dlci); | 2964 | gsm_destroy_network(dlci); |
2966 | mutex_unlock(&dlci->mutex); | 2965 | mutex_unlock(&dlci->mutex); |
2967 | gsm = dlci->gsm; | ||
2968 | if (tty_port_close_start(&dlci->port, tty, filp) == 0) | 2966 | if (tty_port_close_start(&dlci->port, tty, filp) == 0) |
2969 | return; | 2967 | return; |
2970 | gsm_dlci_begin_close(dlci); | 2968 | gsm_dlci_begin_close(dlci); |