tty: n_gsm: introduce macro for minimal unit size
authorDaniel Starke <daniel.starke@siemens.com>
Thu, 3 Nov 2022 09:17:41 +0000 (10:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Nov 2022 12:03:58 +0000 (13:03 +0100)
commit7a1212475f5e313c11300272f34ffa32462bbeef
tree6ca7101753e660640d510b72b31629a993ae2de0
parentd85bf5105853d57ed27c6c21ac35424cc44a0fbb
tty: n_gsm: introduce macro for minimal unit size

n_gsm has a minimal protocol overhead of 7 bytes. The current code already
checks whether the configured MRU/MTU size is at least one byte more than
this.

Introduce the macro MIN_MTU to make this value more obvious.

Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20221103091743.2119-1-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c