drm: Make drm_dp_mst_dsc_aux_for_port() safe for old compilers
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 20 Feb 2020 00:42:47 +0000 (16:42 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:01:16 +0000 (11:01 -0700)
Older compilers either want two extra pairs of curly braces around the
initializer for local variable desc, or they want a single pair of curly
braces with nothing inside.  Because current Linux-kernel practice favors
the latter, this commit makes it so.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Suggested-by: Joe Perches <joe@perches.com>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
drivers/gpu/drm/drm_dp_mst_topology.c

index 70c4b7afed12494951da8fdaa0132733e87ad8bf..c409867287341c76dbcabf09032427a7ab6601a4 100644 (file)
@@ -5494,7 +5494,7 @@ struct drm_dp_aux *drm_dp_mst_dsc_aux_for_port(struct drm_dp_mst_port *port)
 {
        struct drm_dp_mst_port *immediate_upstream_port;
        struct drm_dp_mst_port *fec_port;
-       struct drm_dp_desc desc = { };
+       struct drm_dp_desc desc = { };
        u8 endpoint_fec;
        u8 endpoint_dsc;