diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-15 17:39:50 +0000 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2018-05-17 22:05:10 +0800 |
commit | 579e2f6d999991d2d2dd39c7185cba0a97137cee (patch) | |
tree | 90a9675322a7ead8554c1b9e0c426731fb885165 /drivers/gpu/drm/i915/intel_pipe_crc.c | |
parent | 1c6ccad8a4b110bac3f9ff6db954ab5a74c2e861 (diff) |
drm/i915/gvt: Use offsetofend() rather than offsetof + sizeof
Compute the offset of the end of the crc32 field using offsetofend()
rather than open-coding.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pipe_crc.c')
0 files changed, 0 insertions, 0 deletions