commit | 4e638025f25652b052ec54cf75e4cfe4f4663ce7 | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <gustavoars@kernel.org> | Tue Jun 16 18:03:28 2020 -0500 |
committer | David S. Miller <davem@davemloft.net> | Thu Jun 18 20:19:20 2020 -0700 |
tree | 9c3adb9752b29a79750c56843de08f07174246fd | |
parent | 3dd1499666f64817173c6390ed4d387471d07df8 [diff] |
net: stmmac: selftests: Use struct_size() helper in kzalloc() Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes. 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>