]> 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)
commit2fe5c6548d40fe3a8bb3b70e6371c8780c75cb12
treed43431ad212a2c607f7da558ff05a21281a7a3a3
parentce824c976412c6a3de3d766ad7c3f613e519edfe
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