diff options
| author | Paul E. McKenney <[email protected]> | 2020-02-20 00:42:47 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2020-04-27 18:01:16 +0000 |
| commit | 53965dbe5396d2945c7cf53c77c7b5532b08791c (patch) | |
| tree | 8e50c8bb1e9602006689ae855db3e94e50bbf2fb | |
| parent | rcu: Use data_race() for RCU CPU stall-warning prints (diff) | |
| download | kernel-53965dbe5396d2945c7cf53c77c7b5532b08791c.tar.gz kernel-53965dbe5396d2945c7cf53c77c7b5532b08791c.zip | |
drm: Make drm_dp_mst_dsc_aux_for_port() safe for old compilers
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 <[email protected]>
Suggested-by: Joe Perches <[email protected]>
Suggested-by: Christoph Hellwig <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/drm_dp_mst_topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 70c4b7afed12..c40986728734 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -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 = { 0 }; + struct drm_dp_desc desc = { }; u8 endpoint_fec; u8 endpoint_dsc; |
