Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/iomd KNF
details: https://anonhg.NetBSD.org/src/rev/1e177b24dd34
branches: trunk
changeset: 779199:1e177b24dd34
user: skrll <skrll%NetBSD.org@localhost>
date: Thu May 10 07:39:48 2012 +0000
description:
KNF
diffstat:
sys/arch/arm/iomd/vidcaudio.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 3df54d9d8dc9 -r 1e177b24dd34 sys/arch/arm/iomd/vidcaudio.c
--- a/sys/arch/arm/iomd/vidcaudio.c Thu May 10 03:16:50 2012 +0000
+++ b/sys/arch/arm/iomd/vidcaudio.c Thu May 10 07:39:48 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vidcaudio.c,v 1.48 2011/11/24 03:35:56 mrg Exp $ */
+/* $NetBSD: vidcaudio.c,v 1.49 2012/05/10 07:39:48 skrll Exp $ */
/*
* Copyright (c) 1995 Melvin Tang-Richardson
@@ -65,7 +65,7 @@
#include <sys/param.h> /* proc.h */
-__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.48 2011/11/24 03:35:56 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.49 2012/05/10 07:39:48 skrll Exp $");
#include <sys/audioio.h>
#include <sys/conf.h> /* autoconfig functions */
@@ -478,7 +478,8 @@
if (sc->sc_ppages != NULL)
free(sc->sc_ppages, M_DEVBUF);
sc->sc_ppages = malloc(npages * sizeof(paddr_t), M_DEVBUF, M_WAITOK);
- if (sc->sc_ppages == NULL) return ENOMEM;
+ if (sc->sc_ppages == NULL)
+ return ENOMEM;
for (i = 0; i < npages; i++)
if (!pmap_extract(pmap_kernel(),
(vaddr_t)start + i * PAGE_SIZE, &sc->sc_ppages[i]))
Home |
Main Index |
Thread Index |
Old Index