]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5fcce38d81c78d7f0995c97783d4c90e341882b
treed43431ad212a2c607f7da558ff05a21281a7a3a3
parent36755f7764c854d86719a2d38fe1a1994359feeb
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