Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/cavium/dev Use structure copy instead of memcpy.



details:   https://anonhg.NetBSD.org/src/rev/7a48c8879f64
branches:  trunk
changeset: 808777:7a48c8879f64
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jun 02 05:11:34 2015 +0000

description:
Use structure copy instead of memcpy.

diffstat:

 sys/arch/mips/cavium/dev/octeon_uart.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cd8bd8e102ea -r 7a48c8879f64 sys/arch/mips/cavium/dev/octeon_uart.c
--- a/sys/arch/mips/cavium/dev/octeon_uart.c    Tue Jun 02 05:10:57 2015 +0000
+++ b/sys/arch/mips/cavium/dev/octeon_uart.c    Tue Jun 02 05:11:34 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: octeon_uart.c,v 1.2 2015/06/01 22:55:12 matt Exp $     */
+/*     $NetBSD: octeon_uart.c,v 1.3 2015/06/02 05:11:34 matt Exp $     */
 
 /*
  * Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_uart.c,v 1.2 2015/06/01 22:55:12 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_uart.c,v 1.3 2015/06/02 05:11:34 matt Exp $");
 
 #include "opt_octeon.h"
 
@@ -121,7 +121,7 @@
        int status;
 
        sc_com->sc_dev = self;
-       (void)memcpy(&sc_com->sc_regs, &octeon_uart_com_regs, sizeof(sc_com->sc_regs));
+       sc_com->sc_regs = octeon_uart_com_regs;
        sc_com->sc_regs.cr_iot = aa->aa_bust;
        sc_com->sc_regs.cr_iobase = aa->aa_unit->addr;
 



Home | Main Index | Thread Index | Old Index