commit 1dedf981065418e82f6993e04ead0c23e84b82b0
parent d0f313465a85ed49e1d3d8866f70de0f473a0912
Author: Roberto E. Vargas Caballero <roberto.vargas@midokura.com>
Date:   Wed, 16 Nov 2022 19:07:16 +0100
os9: Simplify the code of devproc.c
Same parameters in internal functions were not needed.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/os9/dev/devproc.c b/src/os9/dev/devproc.c
@@ -24,7 +24,7 @@ static Dirtab tasktab[] = {
 };
 
 static int
-procfsgen(Chan *c, Dirtab *tab, int ntab, int n, Dir *dir)
+procfsgen(Chan *c, int n, Dir *dir)
 {
 	Task *tp;
 	char nam[NAMELEN];
@@ -56,7 +56,7 @@ procfsgen(Chan *c, Dirtab *tab, int ntab, int n, Dir *dir)
 }
 
 static int
-taskgen(Chan *c, Dirtab *tab, int ntab, int n, Dir *dir)
+taskgen(Chan *c, int n, Dir *dir)
 {
 	int r, tid = TASK(c->qid);
 
@@ -70,9 +70,9 @@ procgen(Chan *c, Dirtab *tab, int ntab, int n, Dir *dir)
 {
 	switch (TYPE(c->qid)) {
 	case Qprocfs:
-		return procfsgen(c, tab, ntab, n, dir);
+		return procfsgen(c, n, dir);
 	case Qtaskdir:
-		return taskgen(c, tab, ntab, n, dir);
+		return taskgen(c, n, dir);
 	default:
 		return 0;
 	}