Drop redundant (and wrong) cast.

This commit is contained in:
uwe 2005-06-02 20:27:30 +00:00
parent a2a1dc8e7c
commit e1638036b3
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: process_machdep.c,v 1.14 2005/06/01 13:01:35 scw Exp $ */
/* $NetBSD: process_machdep.c,v 1.15 2005/06/02 20:27:30 uwe Exp $ */
/*
* Copyright (c) 1993 The Regents of the University of California.
@ -133,7 +133,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.14 2005/06/01 13:01:35 scw Exp $");
__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.15 2005/06/02 20:27:30 uwe Exp $");
#include <sys/proc.h>
#include <sys/ptrace.h>
@ -201,7 +201,7 @@ process_write_regs(struct lwp *l, const struct reg *regs)
struct trapframe *tf = process_frame(l);
KASSERT(tf != NULL);
bcopy((caddr_t)regs->r, (caddr_t)&tf->tf_r0, sizeof(regs->r));
bcopy(regs->r, &tf->tf_r0, sizeof(regs->r));
tf->tf_usr_sp = regs->r_sp;
tf->tf_usr_lr = regs->r_lr;
#ifdef __PROG32