amiserial: expand serial_isroot
authorJiri Slaby <jslaby@suse.cz>
Wed, 14 Jul 2021 09:13:10 +0000 (11:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 10:49:51 +0000 (12:49 +0200)
commit935256192996de6317e3afe5dc1b2f8d9c210afd
tree392d4950a8d60924e49825c6ca1c58535ff1c76c
parent5d4317abd2223eea5884f7e28d1047d5e87d4a6f
amiserial: expand serial_isroot

Having a macro (serial_isroot) for capable(CAP_SYS_ADMIN) does not save
us from anything. It rather obfuscates the code. Hence expand
serial_isroot to be explicit like every other driver is.

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