n_gsm: remove unused parameters from gsm_error()

data and flag are unused in gsm_error(), so remove them.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20211118071716.11984-1-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jiri Slaby 2021-11-18 08:17:16 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель 635e4172bd
Коммит ea502201da
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -2074,8 +2074,6 @@ static void gsm1_receive(struct gsm_mux *gsm, unsigned char c)
/** /**
* gsm_error - handle tty error * gsm_error - handle tty error
* @gsm: ldisc data * @gsm: ldisc data
* @data: byte received (may be invalid)
* @flag: error received
* *
* Handle an error in the receipt of data for a frame. Currently we just * Handle an error in the receipt of data for a frame. Currently we just
* go back to hunting for a SOF. * go back to hunting for a SOF.
@ -2083,8 +2081,7 @@ static void gsm1_receive(struct gsm_mux *gsm, unsigned char c)
* FIXME: better diagnostics ? * FIXME: better diagnostics ?
*/ */
static void gsm_error(struct gsm_mux *gsm, static void gsm_error(struct gsm_mux *gsm)
unsigned char data, unsigned char flag)
{ {
gsm->state = GSM_SEARCH; gsm->state = GSM_SEARCH;
gsm->io_error++; gsm->io_error++;
@ -2504,7 +2501,7 @@ static void gsmld_receive_buf(struct tty_struct *tty, const unsigned char *cp,
case TTY_BREAK: case TTY_BREAK:
case TTY_PARITY: case TTY_PARITY:
case TTY_FRAME: case TTY_FRAME:
gsm_error(gsm, *cp, flags); gsm_error(gsm);
break; break;
default: default:
WARN_ONCE(1, "%s: unknown flag %d\n", WARN_ONCE(1, "%s: unknown flag %d\n",