mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
net: nfc: nci: remove memset of nci_uart_drivers
nci_uart_drivers is a global definition, so there is no need to initialize its memory to zero during module load. Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: netdev@vger.kernel.org Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210302062214.29627-15-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8ff694972f
commit
9f3698e97d
@ -468,7 +468,6 @@ static struct tty_ldisc_ops nci_uart_ldisc = {
|
||||
|
||||
static int __init nci_uart_init(void)
|
||||
{
|
||||
memset(nci_uart_drivers, 0, sizeof(nci_uart_drivers));
|
||||
return tty_register_ldisc(N_NCI, &nci_uart_ldisc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user