drm/i915/gvt: Use ARRAY_SIZE for vgpu_types
Prefer ARRAY_SIZE instead of using sizeof Fixes coccicheck warning: Use ARRAY_SIZE Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk> Signed-off-by: NAishwarya Ramakrishnan <aishwaryarj100@gmail.com> Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20200518150336.15265-1-aishwaryarj100@gmail.com
Showing
想要评论请 注册 或 登录