aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/io.c')
-rw-r--r--kernel/features/io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/features/io.c b/kernel/features/io.c
index eb4b7a5..bc7977a 100644
--- a/kernel/features/io.c
+++ b/kernel/features/io.c
@@ -84,7 +84,6 @@ res io_poll(u32 *devs)
struct io_dev *dev = io_get(io);
if (!dev || !dev->read) {
io_remove_group(group);
- group--;
return -ENOENT;
}
@@ -92,7 +91,6 @@ res io_poll(u32 *devs)
res ready = dev->ready();
if (ready == EOK) {
io_remove_group(group);
- group--;
return io;
} else if (ready != -EAGAIN) {
return ready;