drm/i915: use pointer = k[cmz...]alloc(sizeof(*pointer), ...) pattern
[deliverable/linux.git] / drivers / gpu / drm / i915 / i915_gem.c
index 36c4ad9c752eedca9c972394a89ac0c944f93cd3..96f65a15ffc9a4ebdfeb0696cd02742e644fdc7b 100644 (file)
@@ -4638,7 +4638,7 @@ static int i915_gem_init_phys_object(struct drm_device *dev,
        if (dev_priv->mm.phys_objs[id - 1] || !size)
                return 0;
 
-       phys_obj = kzalloc(sizeof(struct drm_i915_gem_phys_object), GFP_KERNEL);
+       phys_obj = kzalloc(sizeof(*phys_obj), GFP_KERNEL);
        if (!phys_obj)
                return -ENOMEM;
 
This page took 0.070194 seconds and 5 git commands to generate.