net/sched: cls_u32: Use struct_size() helper
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 30 Jul 2020 16:03:14 +0000 (11:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 23:50:39 +0000 (16:50 -0700)
commit77aec5e1c4935e37c8cbb818a69f2f7d3433ede5
treece397cf506a6bb4ca8dd484f87196a2514ca8de3
parent26b4b2d99c3a0abe7b6ff4969f48afdda0931573
net/sched: cls_u32: Use struct_size() helper

Make use of the struct_size() helper, in multiple places, instead
of an open-coded version in order to avoid any potential type
mistakes and protect against potential integer overflows.

Also, remove unnecessary object identifier size.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c