drm/i915: Silence a sparse warning
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 2 Apr 2015 15:28:07 +0000 (18:28 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 06:55:55 +0000 (08:55 +0200)
../drivers/gpu/drm/i915/intel_pm.c:3185:45: warning: Initializer entry defined twice
../drivers/gpu/drm/i915/intel_pm.c:3185:52:   also defined here

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index e1392e79c5c4b8861f73a51377fe3b9f7b88622a..cd91407e1f932cc8bcf352906a9ad757273afcab 100644 (file)
@@ -3178,7 +3178,7 @@ static void skl_flush_wm_values(struct drm_i915_private *dev_priv,
 {
        struct drm_device *dev = dev_priv->dev;
        struct skl_ddb_allocation *cur_ddb, *new_ddb;
-       bool reallocated[I915_MAX_PIPES] = {false, false, false};
+       bool reallocated[I915_MAX_PIPES] = {};
        struct intel_crtc *crtc;
        enum pipe pipe;