mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 12:50:14 +01:00
Kdrive: fix nasty thinko in TslibEnable()
This commit is contained in:
parent
026534f945
commit
d37edeff99
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue