aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_linux_drm_crtc_initialise.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgamma_linux_drm_crtc_initialise.c')
-rw-r--r--libgamma_linux_drm_crtc_initialise.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libgamma_linux_drm_crtc_initialise.c b/libgamma_linux_drm_crtc_initialise.c
index e047ad6..a9320ad 100644
--- a/libgamma_linux_drm_crtc_initialise.c
+++ b/libgamma_linux_drm_crtc_initialise.c
@@ -17,7 +17,6 @@ libgamma_linux_drm_crtc_initialise(struct libgamma_crtc_state *restrict this,
struct libgamma_partition_state *restrict partition, size_t crtc)
{
struct libgamma_drm_card_data *restrict card = partition->data;
-
if (crtc >= partition->crtcs_available)
return LIBGAMMA_NO_SUCH_CRTC;
this->data = (void *)(size_t)card->res->crtcs[crtc];