aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-get-edid-using-vbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor-get-edid-using-vbe.c')
-rw-r--r--monitor-get-edid-using-vbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor-get-edid-using-vbe.c b/monitor-get-edid-using-vbe.c
index 1bf0759..ba04224 100644
--- a/monitor-get-edid-using-vbe.c
+++ b/monitor-get-edid-using-vbe.c
@@ -48,8 +48,8 @@ int main(int argc, char **argv)
size = get_edid(edid, port);
/* restore */
- ioctl(fd, VT_ACTIVATE, current.v_active) == 0 &&
- ioctl(fd, VT_WAITACTIVE, current.v_active) == 0;
+ if (ioctl(fd, VT_ACTIVATE, current.v_active) == 0)
+ ioctl(fd, VT_WAITACTIVE, current.v_active);
}
close(fd);
}