]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
l2tp: cleanup kzalloc calls
authorTom Parkin <tparkin@katalix.com>
Thu, 23 Jul 2020 11:29:55 +0000 (12:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 18:54:40 +0000 (11:54 -0700)
commit70c05bfa4a3d36c0d8e7cef86b0f6c8a9cbb8881
treeb5b27ef6eeb2de26adbd523121c709b3547747be
parent0787840dad4ce7875f1e85eb8b72a54e9d87f9db
l2tp: cleanup kzalloc calls

Passing "sizeof(struct blah)" in kzalloc calls is less readable,
potentially prone to future bugs if the type of the pointer is changed,
and triggers checkpatch warnings.

Tweak the kzalloc calls in l2tp which use this form to avoid the
warning.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c