net: thunderx: Use struct_size() helper in kmalloc()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 8 Oct 2020 14:28:06 +0000 (09:28 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Oct 2020 17:34:03 +0000 (10:34 -0700)
commitf6e5ee6a2f3d13aa1786f3b52da7a5f663752df7
treedfabdf8a95db668c2440533d971d1f86fb09fbe5
parent8df245c40aa233f9f27908c71ed035165fa4f831
net: thunderx: Use struct_size() helper in kmalloc()

Make use of the new struct_size() helper instead of the offsetof() idiom.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cavium/thunder/nicvf_main.c