]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Use struct_size() helper
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 17 Jun 2020 21:51:44 +0000 (16:51 -0500)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 11 Aug 2020 01:16:02 +0000 (03:16 +0200)
commit7acc330a549bcf4b7725f1ac98f08d2bd7a6c035
tree495eb2a981f5fe8236c750e961fa25c69bf1f678
parentc8383b499585d5c0d7acb03a051da00a02ee2fd1
drm/vmwgfx: 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.

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: Roland Scheidegger <sroland@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c