diff options
author | Dave Jones <davej@redhat.com> | 2007-08-16 09:46:27 +0200 |
---|---|---|
committer | Dodji Seketeli <dodji@openedhand.com> | 2007-08-16 09:46:27 +0200 |
commit | 14c13b8d62eb37cba8a044daffcddec578ba1644 (patch) | |
tree | 92fe899d181a0ab01760f0edf2d0971f00ac9e36 | |
parent | 026534f945ae5652592a090a9d41375ca37ab618 (diff) |
Kdrive: fix nasty thinko in TslibEnable()
-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; } |