summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index b9eb48e..c69cb14 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -241,13 +241,9 @@ handle_t process_find_free_handle(struct process *proc, handle_t start_at) {
return handle;
}
-struct handle*
-process_handle_get(struct process *p, handle_t id, enum handle_type type) {
- struct handle *h;
+struct handle *process_handle_get(struct process *p, handle_t id) {
if (id < 0 || id >= HANDLE_MAX) return NULL;
- h = p->handles[id];
- if (h == NULL || h->type != type) return NULL;
- return h;
+ return p->handles[id];
}
void process_transition(struct process *p, enum process_state state) {