summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/zs.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2022-04-21 13:17:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-22 17:21:53 +0300
commite48b68ab0ca402cd8da0363c55a834dde0331b83 (patch)
treebc1627d9711ddee6e9fcd3f10cf5cd322ac9772c /drivers/tty/serial/zs.c
parent08814cd69d4eace3612aaa386dffa5ebb8d1e1a4 (diff)
downloadlinux-e48b68ab0ca402cd8da0363c55a834dde0331b83.tar.xz
serial: zs: use NULL as a pointer, not 0
struct uart_port::membase is declared as a pointer. So it should be initialized by NULL, not zero constant. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20220421101708.5640-5-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/zs.c')
-rw-r--r--drivers/tty/serial/zs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/zs.c b/drivers/tty/serial/zs.c
index 70969bf9d82c..5bc58591665a 100644
--- a/drivers/tty/serial/zs.c
+++ b/drivers/tty/serial/zs.c
@@ -981,7 +981,7 @@ static const char *zs_type(struct uart_port *uport)
static void zs_release_port(struct uart_port *uport)
{
iounmap(uport->membase);
- uport->membase = 0;
+ uport->membase = NULL;
release_mem_region(uport->mapbase, ZS_CHAN_IO_SIZE);
}