Module Name:src
Committed By: skrll
Date: Tue Sep 27 06:12:19 UTC 2022
Modified Files:
src/sys/arch/evbarm/ifpga: ifpga.c
Log Message:
malloc -> kmem
small KNF while I'm here
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/evbarm/ifpga/ifpga.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/arch/evbarm/ifpga/ifpga.c
diff -u src/sys/arch/evbarm/ifpga/ifpga.c:1.30 src/sys/arch/evbarm/ifpga/ifpga.c:1.31
--- src/sys/arch/evbarm/ifpga/ifpga.c:1.30 Sat Aug 7 16:18:49 2021
+++ src/sys/arch/evbarm/ifpga/ifpga.c Tue Sep 27 06:12:19 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: ifpga.c,v 1.30 2021/08/07 16:18:49 thorpej Exp $ */
+/* $NetBSD: ifpga.c,v 1.31 2022/09/27 06:12:19 skrll Exp $ */
/*
* Copyright (c) 2001 ARM Ltd
@@ -38,13 +38,13 @@
*/
#include
-__KERNEL_RCSID(0, "$NetBSD: ifpga.c,v 1.30 2021/08/07 16:18:49 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ifpga.c,v 1.31 2022/09/27 06:12:19 skrll Exp $");
#include
#include
#include
#include
-#include
+#include
#include
#include
@@ -267,7 +267,7 @@ ifpga_attach(device_t parent, device_t s
printf("\n");
#if NPCI > 0
- pci_sc = malloc(sizeof(struct ifpga_pci_softc), M_DEVBUF, M_WAITOK);
+ pci_sc = kmem_alloc(sizeof(*pci_sc), KM_SLEEP);
pci_sc->sc_iot = _pci_io_tag;
pci_sc->sc_memt = _pci_mem_tag;