kdrive: Remove unneeded AddEnabledDevice/RemoveEnabledDevice calls
kdrive uses the NotifyFd interface, which handles all of the necessary fd configuration in the OS layer. Having it also use the old EnableDevice interfaces is incorrect. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4fca18dc03
commit
8cf832c288
|
@ -185,7 +185,6 @@ KdAddFd(int fd, int i)
|
||||||
kdnFds++;
|
kdnFds++;
|
||||||
fcntl(fd, F_SETOWN, getpid());
|
fcntl(fd, F_SETOWN, getpid());
|
||||||
KdNonBlockFd(fd);
|
KdNonBlockFd(fd);
|
||||||
AddEnabledDevice(fd);
|
|
||||||
SetNotifyFd(fd, KdNotifyFd, X_NOTIFY_READ, (void *) (intptr_t) i);
|
SetNotifyFd(fd, KdNotifyFd, X_NOTIFY_READ, (void *) (intptr_t) i);
|
||||||
memset(&act, '\0', sizeof act);
|
memset(&act, '\0', sizeof act);
|
||||||
act.sa_handler = KdSigio;
|
act.sa_handler = KdSigio;
|
||||||
|
@ -205,7 +204,6 @@ KdRemoveFd(int fd)
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
kdnFds--;
|
kdnFds--;
|
||||||
RemoveEnabledDevice(fd);
|
|
||||||
RemoveNotifyFd(fd);
|
RemoveNotifyFd(fd);
|
||||||
flags = fcntl(fd, F_GETFL);
|
flags = fcntl(fd, F_GETFL);
|
||||||
flags &= ~(FASYNC | NOBLOCK);
|
flags &= ~(FASYNC | NOBLOCK);
|
||||||
|
|
Loading…
Reference in New Issue