]> git.baikalelectronics.ru Git - 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)
commitab88735ba1f47d4bee2bcbcb56de05ca9d8e2bab
treeb5b27ef6eeb2de26adbd523121c709b3547747be
parent6afaa91010d10204ce12a977c93a18bb420a2e47
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