commit | c05d042fda889f1e591b9d306482d9c16072dd60 | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <gustavoars@kernel.org> | Fri Jun 19 20:14:06 2020 -0500 |
committer | David S. Miller <davem@davemloft.net> | Mon Jun 22 15:43:16 2020 -0700 |
tree | 879c23cadb62bd3a4b6cf5a5d41fabb3eba92ee2 | |
parent | dd0d718152e4c65b173070d48ea9dfc06894c3e5 [diff] |
sparc64: viohs: Use struct_size() helper 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 _len_. This code was detected with the help of Coccinelle and, audited and fixed manually. Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>