mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-29 06:50:13 +01:00
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>
This commit is contained in:
parent
28d896c763
commit
13ad10afc3
1 changed files with 1 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue