Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/0a33b703e021
branches: trunk
changeset: 790064:0a33b703e021
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 15:47:27 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/usb/usb_mem.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 878ef02cb86b -r 0a33b703e021 sys/dev/usb/usb_mem.c
--- a/sys/dev/usb/usb_mem.c Sun Sep 15 15:46:33 2013 +0000
+++ b/sys/dev/usb/usb_mem.c Sun Sep 15 15:47:27 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_mem.c,v 1.62 2013/02/05 13:39:28 christos Exp $ */
+/* $NetBSD: usb_mem.c,v 1.63 2013/09/15 15:47:27 martin Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.62 2013/02/05 13:39:28 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.63 2013/09/15 15:47:27 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -486,9 +486,8 @@
void
usb_reserve_freem(struct usb_dma_reserve *rs, usb_dma_t *dma)
{
- int error; /* XXX: why? */
- error = extent_free(rs->extent,
+ extent_free(rs->extent,
(u_long)(rs->paddr + dma->offs), dma->block->size, 0);
kmem_free(dma->block->segs, dma->block->nsegs *
sizeof(*dma->block->segs));
Home |
Main Index |
Thread Index |
Old Index