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:
Keith Packard 2016-05-16 21:28:48 -05:00
parent 4fca18dc03
commit 8cf832c288

View File

@ -185,7 +185,6 @@ KdAddFd(int fd, int i)
kdnFds++;
fcntl(fd, F_SETOWN, getpid());
KdNonBlockFd(fd);
AddEnabledDevice(fd);
SetNotifyFd(fd, KdNotifyFd, X_NOTIFY_READ, (void *) (intptr_t) i);
memset(&act, '\0', sizeof act);
act.sa_handler = KdSigio;
@ -205,7 +204,6 @@ KdRemoveFd(int fd)
int flags;
kdnFds--;
RemoveEnabledDevice(fd);
RemoveNotifyFd(fd);
flags = fcntl(fd, F_GETFL);
flags &= ~(FASYNC | NOBLOCK);