tty: serial: samsung_tty: Use abs() to simplify some code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 10 Jun 2023 15:59:27 +0000 (17:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2023 10:33:22 +0000 (12:33 +0200)
commitf3710f5e9e1a68da53202cffba73f4b604f05b15
tree2a19bbc6f4cc0dcda72c137e6d5bb8eb68736686
parent832e231cff476102e8204a9e7bddfe5c6154a375
tty: serial: samsung_tty: Use abs() to simplify some code

Use abs() instead of hand-writing it.

Suggested-by: Walter Harms <wharms@bfs.de>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Message-ID: <7bd165e82ed3675d4ddee343ab373031e995a126.1686412569.git.christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c