n_hdlc: use clamp() for maxframe
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 08:41:00 +0000 (09:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2020 09:24:32 +0000 (10:24 +0100)
commitc549725ff85ab2dee1b8453a92ab437150ece800
treed43431ad212a2c607f7da558ff05a21281a7a3a3
parentcda3756ca5c4308c4cb1110209f27b49a680409a
n_hdlc: use clamp() for maxframe

It is easier to read. And use MAX_HDLC_FRAME_SIZE instead of magic
constant.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219084118.26491-6-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_hdlc.c