]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Use ARRAY_SIZE for vgpu_types
authorAishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Mon, 18 May 2020 15:03:36 +0000 (20:33 +0530)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 19 May 2020 09:18:50 +0000 (17:18 +0800)
commitb35d31dc85370a13c4e4c7dd8b027a37f7043ad9
tree77a681b9a2fe1fec84d9f29974b133faa83b160f
parent176211601c68a78cb1b6bea6ba9eed25270bcb53
drm/i915/gvt: Use ARRAY_SIZE for vgpu_types

Prefer ARRAY_SIZE instead of using sizeof

Fixes coccicheck warning: Use ARRAY_SIZE

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Aishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200518150336.15265-1-aishwaryarj100@gmail.com
drivers/gpu/drm/i915/gvt/vgpu.c