Module Name: src
Committed By: riastradh
Date: Tue Jun 25 14:54:03 UTC 2024
Modified Files:
src/sys/dev/pci: virtio_pci.c
Log Message:
virtio_pci.c: Omit needless blank lines and commented code.
No functional change intended.
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/pci/virtio_pci.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/dev/pci/virtio_pci.c
diff -u src/sys/dev/pci/virtio_pci.c:1.50 src/sys/dev/pci/virtio_pci.c:1.51
--- src/sys/dev/pci/virtio_pci.c:1.50 Tue Jun 25 14:53:45 2024
+++ src/sys/dev/pci/virtio_pci.c Tue Jun 25 14:54:03 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: virtio_pci.c,v 1.50 2024/06/25 14:53:45 riastradh Exp $ */
+/* $NetBSD: virtio_pci.c,v 1.51 2024/06/25 14:54:03 riastradh Exp $ */
/*
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio_pci.c,v 1.50 2024/06/25 14:53:45 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio_pci.c,v 1.51 2024/06/25 14:54:03 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -78,7 +78,6 @@ static void virtio_pci_attach(device_t,
static int virtio_pci_rescan(device_t, const char *, const int *);
static int virtio_pci_detach(device_t, int);
-
#define NMAPREG ((PCI_MAPREG_END - PCI_MAPREG_START) / \
sizeof(pcireg_t))
struct virtio_pci_softc {
@@ -172,7 +171,6 @@ static bool virtio_pci_msix_enabled(stru
# define STRUCT_ENDIAN_10 LITTLE_ENDIAN
#endif
-
CFATTACH_DECL3_NEW(virtio_pci, sizeof(struct virtio_pci_softc),
virtio_pci_match, virtio_pci_attach, virtio_pci_detach, NULL,
virtio_pci_rescan, NULL, 0);
@@ -351,7 +349,6 @@ virtio_pci_rescan(device_t self, const c
return 0;
}
-
static int
virtio_pci_detach(device_t self, int flags)
{
@@ -388,16 +385,12 @@ virtio_pci_detach(device_t self, int fla
return 0;
}
-
static int
virtio_pci_attach_09(device_t self, void *aux)
- //struct virtio_pci_softc *psc, struct pci_attach_args *pa)
{
struct virtio_pci_softc * const psc = device_private(self);
struct pci_attach_args *pa = (struct pci_attach_args *)aux;
struct virtio_softc * const sc = &psc->sc_sc;
-// pci_chipset_tag_t pc = pa->pa_pc;
-// pcitag_t tag = pa->pa_tag;
/* complete IO region */
if (pci_mapreg_map(pa, PCI_MAPREG_START, PCI_MAPREG_TYPE_IO, 0,
@@ -431,7 +424,6 @@ virtio_pci_attach_09(device_t self, void
return 0;
}
-
static int
virtio_pci_attach_10(device_t self, void *aux)
{
@@ -611,7 +603,6 @@ virtio_pci_find_cap(struct virtio_pci_so
return 0;
}
-
/* -------------------------------------
* Version 0.9 support
* -------------------------------------*/
@@ -721,7 +712,6 @@ virtio_pci_kick_10(struct virtio_softc *
bus_space_write_2(psc->sc_notify_iot, psc->sc_notify_ioh, offset, idx);
}
-
static uint16_t
virtio_pci_read_queue_size_10(struct virtio_softc *sc, uint16_t idx)
{
@@ -864,7 +854,6 @@ virtio_pci_negotiate_features_10(struct
return;
}
-
/* -------------------------------------
* Generic PCI interrupt code
* -------------------------------------*/