Skip to content

Commit

Permalink
drm/exynos: Remove unnecessary braces in exynos_hdmi.c
Browse files Browse the repository at this point in the history
Silences the following checkpatch warning:
WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Sachin Kamat authored and Inki Dae committed Apr 29, 2013
1 parent b9047b8 commit 5f46c33
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions drivers/gpu/drm/exynos/exynos_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1373,11 +1373,10 @@ static void hdmiphy_conf_apply(struct hdmi_context *hdata)
return;
}

if (hdata->type == HDMI_TYPE13) {
if (hdata->type == HDMI_TYPE13)
hdmiphy_data = hdmiphy_v13_configs[i].conf;
} else {
else
hdmiphy_data = hdmiphy_v14_configs[i].conf;
}

memcpy(buffer, hdmiphy_data, 32);
ret = i2c_master_send(hdata->hdmiphy_port, buffer, 32);
Expand Down Expand Up @@ -1653,11 +1652,10 @@ static void hdmi_mode_set(void *ctx, void *mode)
m->vrefresh, (m->flags & DRM_MODE_FLAG_INTERLACE) ?
"INTERLACED" : "PROGERESSIVE");

if (hdata->type == HDMI_TYPE13) {
if (hdata->type == HDMI_TYPE13)
hdmi_v13_mode_set(hdata, mode);
} else {
else
hdmi_v14_mode_set(hdata, mode);
}
}

static void hdmi_get_max_resol(void *ctx, unsigned int *width,
Expand Down

0 comments on commit 5f46c33

Please sign in to comment.