projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08814cd
)
serial: zs: use NULL as a pointer, not 0
author
Jiri Slaby
<jslaby@suse.cz>
Thu, 21 Apr 2022 10:17:05 +0000
(12:17 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 22 Apr 2022 14:21:53 +0000
(16:21 +0200)
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>
drivers/tty/serial/zs.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/zs.c
b/drivers/tty/serial/zs.c
index 70969bf9d82c91cf180e73e8042bb69b91b028f5..5bc58591665a0c7c971142ca212e846731faf2f6 100644
(file)
--- 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);
}