Module Name: src Committed By: kiyohara Date: Thu Apr 29 06:53:49 UTC 2010
Modified Files: src/sys/dev/ieee1394: fwdev.c Log Message: Remove unnecessary cast. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/dev/ieee1394/fwdev.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ieee1394/fwdev.c diff -u src/sys/dev/ieee1394/fwdev.c:1.18 src/sys/dev/ieee1394/fwdev.c:1.19 --- src/sys/dev/ieee1394/fwdev.c:1.18 Mon Mar 29 03:05:27 2010 +++ src/sys/dev/ieee1394/fwdev.c Thu Apr 29 06:53:48 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: fwdev.c,v 1.18 2010/03/29 03:05:27 kiyohara Exp $ */ +/* $NetBSD: fwdev.c,v 1.19 2010/04/29 06:53:48 kiyohara Exp $ */ /*- * Copyright (c) 2003 Hidetoshi Shimokawa * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: fwdev.c,v 1.18 2010/03/29 03:05:27 kiyohara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fwdev.c,v 1.19 2010/04/29 06:53:48 kiyohara Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -511,10 +511,10 @@ break; } - memcpy((void *)&xfer->send.hdr, fp, tinfo->hdr_len); + memcpy(&xfer->send.hdr, fp, tinfo->hdr_len); if (pay_len > 0) - memcpy((void *)xfer->send.payload, - (char *)fp + tinfo->hdr_len, pay_len); + memcpy(xfer->send.payload, (char *)fp + tinfo->hdr_len, + pay_len); xfer->send.spd = asyreq->req.sped; xfer->hand = fw_xferwake;