Skip to content

Commit 53965db

Browse files
committed
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]>
1 parent 47fbb07 commit 53965db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_dp_mst_topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5494,7 +5494,7 @@ struct drm_dp_aux *drm_dp_mst_dsc_aux_for_port(struct drm_dp_mst_port *port)
54945494
{
54955495
struct drm_dp_mst_port *immediate_upstream_port;
54965496
struct drm_dp_mst_port *fec_port;
5497-
struct drm_dp_desc desc = { 0 };
5497+
struct drm_dp_desc desc = { };
54985498
u8 endpoint_fec;
54995499
u8 endpoint_dsc;
55005500

0 commit comments

Comments
 (0)