Skip to content

Commit 7d98404

Browse files
committed
drm/omap: Use {} to zero initialize the mode
The first member of drm_display_mode is no longer a structure, but the code is still using {{0}} to zero initialize it. Make that just {} so it works regardless of what lies inside. Cc: Dave Airlie <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: Tomi Valkeinen <[email protected]> Fixes: 42acb06 ("drm: pahole struct drm_display_mode") Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Daniel Vetter <[email protected]>
1 parent 2067391 commit 7d98404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/omapdrm/omap_connector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static enum drm_mode_status omap_connector_mode_valid(struct drm_connector *conn
8989
struct drm_display_mode *mode)
9090
{
9191
struct omap_connector *omap_connector = to_omap_connector(connector);
92-
struct drm_display_mode new_mode = { { 0 } };
92+
struct drm_display_mode new_mode = {};
9393
enum drm_mode_status status;
9494

9595
status = omap_connector_mode_fixup(omap_connector->output, mode,

0 commit comments

Comments
 (0)