From 343216fd5d67931f236a980839b7dbaec9cbb980 Mon Sep 17 00:00:00 2001 From: Quytelda Kahja Date: Sun, 18 Feb 2018 12:26:55 -0800 Subject: [PATCH] Staging: gdm724x: tty: Remove unused macro 'gdm_tty_send_control'. Remove the macro 'gdm_tty_send_control' which adds unnecessary complexity, is unused, and has arguments that could mistakenly be evaluated multiple times. Signed-off-by: Quytelda Kahja Signed-off-by: Greg Kroah-Hartman --- drivers/staging/gdm724x/gdm_tty.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c index 25357dc3d88c..3cdebb81ba63 100644 --- a/drivers/staging/gdm724x/gdm_tty.c +++ b/drivers/staging/gdm724x/gdm_tty.c @@ -37,9 +37,6 @@ #define MUX_TX_MAX_SIZE 2048 -#define gdm_tty_send_control(n, r, v, d, l) (\ - n->tty_dev->send_control(n->tty_dev->priv_dev, r, v, d, l)) - #define GDM_TTY_READY(gdm) (gdm && gdm->tty_dev && gdm->port.count) static struct tty_driver *gdm_driver[TTY_MAX_COUNT]; -- 2.30.2