Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Some KNF
details: https://anonhg.NetBSD.org/src/rev/c4d0ea68fa2c
branches: trunk
changeset: 374140:c4d0ea68fa2c
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Apr 03 06:35:13 2023 +0000
description:
Some KNF
diffstat:
sys/arch/arm/arm32/bus_dma.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r d9a0e160a160 -r c4d0ea68fa2c sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c Mon Apr 03 06:33:55 2023 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c Mon Apr 03 06:35:13 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.140 2023/04/03 06:33:55 skrll Exp $ */
+/* $NetBSD: bus_dma.c,v 1.141 2023/04/03 06:35:13 skrll Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2020 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#include "opt_cputypes.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.140 2023/04/03 06:33:55 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.141 2023/04/03 06:35:13 skrll Exp $");
#include <sys/param.h>
@@ -384,7 +384,7 @@ int
map->_dm_segcnt = nsegments;
map->_dm_maxmaxsegsz = maxsegsz;
map->_dm_boundary = boundary;
- map->_dm_flags = flags & ~(BUS_DMA_WAITOK|BUS_DMA_NOWAIT);
+ map->_dm_flags = flags & ~(BUS_DMA_WAITOK | BUS_DMA_NOWAIT);
map->_dm_origbuf = NULL;
map->_dm_buftype = _BUS_DMA_BUFTYPE_INVALID;
map->_dm_vmspace = vmspace_kernel();
@@ -640,8 +640,8 @@ int
error = EFAULT;
break;
}
- switch (m->m_flags & (M_EXT|M_EXT_CLUSTER|M_EXT_PAGES)) {
- case M_EXT|M_EXT_CLUSTER:
+ switch (m->m_flags & (M_EXT | M_EXT_CLUSTER | M_EXT_PAGES)) {
+ case M_EXT | M_EXT_CLUSTER:
/* XXX KDASSERT */
KASSERT(m->m_ext.ext_paddr != M_PADDR_INVALID);
paddr = m->m_ext.ext_paddr +
@@ -651,7 +651,7 @@ int
false);
break;
- case M_EXT|M_EXT_PAGES:
+ case M_EXT | M_EXT_PAGES:
KASSERT(m->m_ext.ext_buf <= m->m_data);
KASSERT(m->m_data <=
m->m_ext.ext_buf + m->m_ext.ext_size);
Home |
Main Index |
Thread Index |
Old Index