diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-06-18 17:46:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-20 06:18:43 +0300 |
commit | 11a33de2df06b4ed23844181cb5c03eea67bfed1 (patch) | |
tree | 3a1c88b2dd235be33b24842c1d9569401e5ac9dd /net/sched/sch_choke.c | |
parent | 1075a4744a32628b6744a616d5d9b3e7df261d35 (diff) | |
download | linux-11a33de2df06b4ed23844181cb5c03eea67bfed1.tar.xz |
taprio: Use struct_size() in kzalloc()
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes. Also, remove unnecessary
variable _size_.
This code was detected with the help of Coccinelle and, audited and
fixed manually.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_choke.c')
0 files changed, 0 insertions, 0 deletions