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;
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;
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;