[PATCH 2/2] cobalt/posix: Drop empty pipeline_attach/detach_process

Jan Kiszka <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
From: Jan Kiszka <[email protected]>

Never served any purpose, time to drop it finally.

Signed-off-by: Jan Kiszka <[email protected]>
---
 include/cobalt/kernel/dovetail/pipeline/kevents.h | 10 ----------
 kernel/cobalt/posix/process.c                     |  7 +------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/include/cobalt/kernel/dovetail/pipeline/kevents.h b/include/cobalt/kernel/dovetail/pipeline/kevents.h
index b7502accd9..1fbc8f5167 100644
--- a/include/cobalt/kernel/dovetail/pipeline/kevents.h
+++ b/include/cobalt/kernel/dovetail/pipeline/kevents.h
@@ -13,16 +13,6 @@
 struct cobalt_process;
 struct cobalt_thread;
 
-static inline
-int pipeline_attach_process(struct cobalt_process *process)
-{
-	return 0;
-}
-
-static inline
-void pipeline_detach_process(struct cobalt_process *process)
-{ }
-
 int pipeline_prepare_current(void);
 
 int pipeline_trap_kevents(void);
diff --git a/kernel/cobalt/posix/process.c b/kernel/cobalt/posix/process.c
index 2161ff5584..7f76bbabcf 100644
--- a/kernel/cobalt/posix/process.c
+++ b/kernel/cobalt/posix/process.c
@@ -1002,10 +1002,6 @@ static int attach_process(struct cobalt_process *process)
 
 	cobalt_umm_set_name(&p->umm, "private heap[%d]", task_pid_nr(current));
 
-	ret = pipeline_attach_process(process);
-	if (ret)
-		goto fail_pipeline;
-
 	exe_path = get_exe_path(current);
 	if (IS_ERR(exe_path)) {
 		printk(XENO_WARNING
@@ -1022,11 +1018,10 @@ static int attach_process(struct cobalt_process *process)
 		goto fail_hash;
 
 	return 0;
+
 fail_hash:
-	pipeline_detach_process(process);
 	if (p->exe_path)
 		kfree(p->exe_path);
-fail_pipeline:
 	cobalt_umm_destroy(&p->umm);
 
 	return ret;
-- 
2.47.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.