mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 13:48:03 +02:00
Kdrive: fix nasty thinko in TslibEnable()
This commit is contained in:
parent
026534f945
commit
14c13b8d62
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ TslibEnable (KdPointerInfo *pi)
|
||||||
private->fd = ts_fd(private->tsDev);
|
private->fd = ts_fd(private->tsDev);
|
||||||
if (!private->tsDev || ts_config(private->tsDev) || private->fd < 0) {
|
if (!private->tsDev || ts_config(private->tsDev) || private->fd < 0) {
|
||||||
ErrorF("[tslib/TslibEnable] failed to open %s\n", pi->path);
|
ErrorF("[tslib/TslibEnable] failed to open %s\n", pi->path);
|
||||||
if (private->fd > 0);
|
if (private->fd >= 0)
|
||||||
close(private->fd);
|
close(private->fd);
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue