Kdrive: fix nasty thinko in TslibEnable()

This commit is contained in:
Dave Jones 2007-08-16 09:46:27 +02:00 committed by Dodji Seketeli
parent 026534f945
commit 14c13b8d62

View File

@ -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;
}