diff options
Diffstat (limited to 'hw/kdrive/linux/tslib.c')
-rw-r--r-- | hw/kdrive/linux/tslib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/kdrive/linux/tslib.c b/hw/kdrive/linux/tslib.c index 41b74fabd..371aeced9 100644 --- a/hw/kdrive/linux/tslib.c +++ b/hw/kdrive/linux/tslib.c @@ -118,7 +118,7 @@ TslibEnable (KdPointerInfo *pi) private->fd = ts_fd(private->tsDev); if (!private->tsDev || ts_config(private->tsDev) || private->fd < 0) { ErrorF("[tslib/TslibEnable] failed to open %s\n", pi->path); - if (private->fd > 0); + if (private->fd >= 0) close(private->fd); return BadAlloc; } |