From 1e2f807b30cc94fc6dc9fcb24f3e1675fe147439 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 24 Jan 2023 12:41:10 +0100 Subject: kern/driver/ps2: remove unused function --- src/kernel/arch/amd64/driver/ps2.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/kernel') diff --git a/src/kernel/arch/amd64/driver/ps2.c b/src/kernel/arch/amd64/driver/ps2.c index 51aabea..d0629e6 100644 --- a/src/kernel/arch/amd64/driver/ps2.c +++ b/src/kernel/arch/amd64/driver/ps2.c @@ -77,19 +77,6 @@ enum { H_MOUSE, }; -static void read_backlog(struct vfs_request *req, ring_t *r, struct vfs_request **queue) { - if (ring_used(r) == 0) { - postqueue_join(queue, req); - } else if (req->caller) { - int len = req->output.len; - if (len < 0) len = 0; - len = ring_to_virt(r, req->caller->pages, req->output.buf, len); - vfsreq_finish_short(req, len); - } else { - vfsreq_finish_short(req, -1); - } -} - static void accept(struct vfs_request *req) { // when you fix something here go also fix it in the COM1 driver int ret; -- cgit v1.2.3