aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Jakobi2015-06-12 13:15:12 -0500
committerEmil Velikov2015-06-29 13:19:23 -0500
commit13ad10afc306a76f9a61e6a339e412a34a59bfe4 (patch)
tree8b1b949c2c8e643937c03f174ac130031cfd89fc /tests/exynos/exynos_fimg2d_test.c
parent28d896c763e0cc2ab8f9679ee75b756bdd587da7 (diff)
downloadexternal-libgbm-13ad10afc306a76f9a61e6a339e412a34a59bfe4.tar.gz
external-libgbm-13ad10afc306a76f9a61e6a339e412a34a59bfe4.tar.xz
external-libgbm-13ad10afc306a76f9a61e6a339e412a34a59bfe4.zip
tests/exynos: simplify drm_set_crtc
We can just return 'ret' here, the goto serves no purpose. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Acked-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests/exynos/exynos_fimg2d_test.c')
-rw-r--r--tests/exynos/exynos_fimg2d_test.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c
index de6a2b78..1ec7340d 100644
--- a/tests/exynos/exynos_fimg2d_test.c
+++ b/tests/exynos/exynos_fimg2d_test.c
@@ -150,14 +150,9 @@ static int drm_set_crtc(struct exynos_device *dev, struct connector *c,
150 150
151 ret = drmModeSetCrtc(dev->fd, c->crtc, 151 ret = drmModeSetCrtc(dev->fd, c->crtc,
152 fb_id, 0, 0, &c->id, 1, c->mode); 152 fb_id, 0, 0, &c->id, 1, c->mode);
153 if (ret) { 153 if (ret)
154 drmMsg("failed to set mode: %s\n", strerror(errno)); 154 drmMsg("failed to set mode: %s\n", strerror(errno));
155 goto err;
156 }
157
158 return 0;
159 155
160err:
161 return ret; 156 return ret;
162} 157}
163 158