]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tty: n_gsm: clean up dead code in gsm_queue()
authorDaniel Starke <daniel.starke@siemens.com>
Wed, 20 Apr 2022 10:13:45 +0000 (03:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 14:54:20 +0000 (16:54 +0200)
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 <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20220420101346.3315-2-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c

index fa92f727fdf895fafd556f41ca1460039181ce81..1549fd67d21c767b5814f63411a9acfef17c44ea 100644 (file)
@@ -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;