mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
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>
This commit is contained in:
parent
0ed55be47c
commit
28dc563339
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user