Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Style.
details: https://anonhg.NetBSD.org/src/rev/e00682176572
branches: trunk
changeset: 1029083:e00682176572
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Dec 21 09:23:41 2021 +0000
description:
Style.
diffstat:
sys/dev/usb/usb_mem.c | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diffs (47 lines):
diff -r 2a523edd896e -r e00682176572 sys/dev/usb/usb_mem.c
--- a/sys/dev/usb/usb_mem.c Tue Dec 21 08:49:03 2021 +0000
+++ b/sys/dev/usb/usb_mem.c Tue Dec 21 09:23:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_mem.c,v 1.81 2021/05/27 10:44:29 jmcneill Exp $ */
+/* $NetBSD: usb_mem.c,v 1.82 2021/12/21 09:23:41 skrll 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.81 2021/05/27 10:44:29 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.82 2021/12/21 09:23:41 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -167,9 +167,8 @@
b->segs = kmem_alloc(b->nsegs * sizeof(*b->segs), KM_SLEEP);
b->nsegs_alloc = b->nsegs;
- error = bus_dmamem_alloc(tag, b->size, align, 0,
- b->segs, b->nsegs,
- &b->nsegs, BUS_DMA_WAITOK);
+ error = bus_dmamem_alloc(tag, b->size, align, 0, b->segs, b->nsegs,
+ &b->nsegs, BUS_DMA_WAITOK);
if (error)
goto free0;
@@ -178,13 +177,13 @@
if (error)
goto free1;
- error = bus_dmamap_create(tag, b->size, b->nsegs, b->size,
- 0, BUS_DMA_WAITOK, &b->map);
+ error = bus_dmamap_create(tag, b->size, b->nsegs, b->size, 0,
+ BUS_DMA_WAITOK, &b->map);
if (error)
goto unmap;
error = bus_dmamap_load(tag, b->map, b->kaddr, b->size, NULL,
- BUS_DMA_WAITOK);
+ BUS_DMA_WAITOK);
if (error)
goto destroy;
Home |
Main Index |
Thread Index |
Old Index