summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>2015-06-12 20:15:12 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2015-06-29 19:19:23 +0100
commit13ad10afc306a76f9a61e6a339e412a34a59bfe4 (patch)
tree8b1b949c2c8e643937c03f174ac130031cfd89fc /tests
parent28d896c763e0cc2ab8f9679ee75b756bdd587da7 (diff)
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')
-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,
ret = drmModeSetCrtc(dev->fd, c->crtc,
fb_id, 0, 0, &c->id, 1, c->mode);
- if (ret) {
+ if (ret)
drmMsg("failed to set mode: %s\n", strerror(errno));
- goto err;
- }
-
- return 0;
-err:
return ret;
}