diff options
author | Jiri Slaby <jslaby@suse.cz> | 2022-05-03 08:31:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-05 22:39:19 +0200 |
commit | 28dc563339b181461494918d5d155e3ebc9a87ec (patch) | |
tree | 150905353f3b6d3aff552f004f9146a19cc6093b /drivers/tty | |
parent | serial: pic32: don't assign pic32_sport::cts_gpio twice (diff) | |
download | linux-28dc563339b181461494918d5d155e3ebc9a87ec.tar.xz linux-28dc563339b181461494918d5d155e3ebc9a87ec.zip |
serial: pic32: don't zero members of kzalloc-ated structure
struct pic32_sport (sport) has just been kzallocated. So there is no
need to zero its member (sport->port) now.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220503063122.20957-10-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/pic32_uart.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/pic32_uart.c b/drivers/tty/serial/pic32_uart.c index 08e79d7f34f7..990603fe8a8d 100644 --- a/drivers/tty/serial/pic32_uart.c +++ b/drivers/tty/serial/pic32_uart.c @@ -919,7 +919,6 @@ static int pic32_uart_probe(struct platform_device *pdev) pic32_sports[uart_idx] = sport; port = &sport->port; - memset(port, 0, sizeof(*port)); port->iotype = UPIO_MEM; port->mapbase = res_mem->start; port->ops = &pic32_uart_ops; |