From: Daniel Starke Date: Wed, 20 Apr 2022 10:13:45 +0000 (-0700) Subject: tty: n_gsm: clean up dead code in gsm_queue() X-Git-Tag: baikal/mips/sdk6.1~5586^2~125 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=5064d9a69be9f0634c12509dec83c05ac26ad01c;p=kernel.git tty: n_gsm: clean up dead code in gsm_queue() Remove commented out code as it is never used and if anyone accidentally turned it on, it would be broken. Signed-off-by: Daniel Starke Link: https://lore.kernel.org/r/20220420101346.3315-2-daniel.starke@siemens.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index fa92f727fdf89..1549fd67d21c7 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -1908,10 +1908,6 @@ static void gsm_queue(struct gsm_mux *gsm) case UI|PF: case UIH: case UIH|PF: -#if 0 - if (cr) - goto invalid; -#endif if (dlci == NULL || dlci->state != DLCI_OPEN) { gsm_command(gsm, address, DM|PF); return;