summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2007-08-16 09:46:27 +0200
committerDodji Seketeli <dodji@openedhand.com>2007-08-16 09:46:27 +0200
commit14c13b8d62eb37cba8a044daffcddec578ba1644 (patch)
tree92fe899d181a0ab01760f0edf2d0971f00ac9e36
parent026534f945ae5652592a090a9d41375ca37ab618 (diff)
Kdrive: fix nasty thinko in TslibEnable()
-rw-r--r--hw/kdrive/linux/tslib.c2
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;
}