Commit 392f9fcb authored by Ville Syrjälä's avatar Ville Syrjälä

drm/edid: Clean up some curly braces

Drop some pointless curly braces, and add some across the
else when the if has them too.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200527130310.27099-3-ville.syrjala@linux.intel.comReviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
parent 7f261afd
...@@ -5888,22 +5888,21 @@ static void drm_parse_tiled_block(struct drm_connector *connector, ...@@ -5888,22 +5888,21 @@ static void drm_parse_tiled_block(struct drm_connector *connector,
DRM_DEBUG_KMS("vend %c%c%c\n", tile->topology_id[0], tile->topology_id[1], tile->topology_id[2]); DRM_DEBUG_KMS("vend %c%c%c\n", tile->topology_id[0], tile->topology_id[1], tile->topology_id[2]);
tg = drm_mode_get_tile_group(connector->dev, tile->topology_id); tg = drm_mode_get_tile_group(connector->dev, tile->topology_id);
if (!tg) { if (!tg)
tg = drm_mode_create_tile_group(connector->dev, tile->topology_id); tg = drm_mode_create_tile_group(connector->dev, tile->topology_id);
}
if (!tg) if (!tg)
return; return;
if (connector->tile_group != tg) { if (connector->tile_group != tg) {
/* if we haven't got a pointer, /* if we haven't got a pointer,
take the reference, drop ref to old tile group */ take the reference, drop ref to old tile group */
if (connector->tile_group) { if (connector->tile_group)
drm_mode_put_tile_group(connector->dev, connector->tile_group); drm_mode_put_tile_group(connector->dev, connector->tile_group);
}
connector->tile_group = tg; connector->tile_group = tg;
} else } else {
/* if same tile group, then release the ref we just took. */ /* if same tile group, then release the ref we just took. */
drm_mode_put_tile_group(connector->dev, tg); drm_mode_put_tile_group(connector->dev, tg);
}
} }
static void drm_displayid_parse_tiled(struct drm_connector *connector, static void drm_displayid_parse_tiled(struct drm_connector *connector,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment