drm/i915: Use sizeof(*fb) not sizeof(struct ...) in get_initial_plane_config()
Subsystems (2)
PATCH 1/1 drm/i915: Use sizeof(*fb) not sizeof(struct ...) in get_initial_plane_config()
Suggested-by Ville Syrjälä <[email protected]>
Signed-off-by Damien Lespiau <[email protected]>
--- drivers/gpu/drm/i915/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_display.c +3 -3
@@ -6586,7 +6586,7 @@ i9xx_get_initial_plane_config(struct intel_crtc *crtc,struct drm_framebuffer *fb;struct intel_framebuffer *intel_fb; - intel_fb =kzalloc (sizeof (struct intel_framebuffer ),GFP_KERNEL ); + intel_fb =kzalloc (sizeof (*intel_fb),GFP_KERNEL );if (!intel_fb) {DRM_DEBUG_KMS ("failed to alloc fb\n" );return ;
@@ -7618,7 +7618,7 @@ skylake_get_initial_plane_config(struct intel_crtc *crtc,struct drm_framebuffer *fb;struct intel_framebuffer *intel_fb; - intel_fb =kzalloc (sizeof (struct intel_framebuffer ),GFP_KERNEL ); + intel_fb =kzalloc (sizeof (*intel_fb),GFP_KERNEL );if (!intel_fb) {DRM_DEBUG_KMS ("failed to alloc fb\n" );return ;
@@ -7714,7 +7714,7 @@ ironlake_get_initial_plane_config(struct intel_crtc *crtc,struct drm_framebuffer *fb;struct intel_framebuffer *intel_fb; - intel_fb =kzalloc (sizeof (struct intel_framebuffer ),GFP_KERNEL ); + intel_fb =kzalloc (sizeof (*intel_fb),GFP_KERNEL );if (!intel_fb) {DRM_DEBUG_KMS ("failed to alloc fb\n" );return ;
Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx