strace: Coalesce a common case statement
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 31 Jul 2018 20:12:33 +0000 (16:12 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 31 Jul 2018 20:12:33 +0000 (16:12 -0400)
SYS_write was doing the same thing that other syscalls were doing; no need
for two cases.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/syscall.c

index eb23538..5e89d16 100644 (file)
@@ -261,8 +261,6 @@ static void systrace_start_trace(struct kthread *kthread, struct syscall *sysc)
 
        switch (sysc->num) {
        case SYS_write:
-               copy_tracedata_from_user(trace, sysc->arg1, sysc->arg2);
-               break;
        case SYS_openat:
        case SYS_chdir:
        case SYS_nmount: