aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:38:18 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:38:18 +0000
commita3e2cdf8a61187d8f2b81271547f6db525e71440 (patch)
tree991d48187c02693fdda2529591b71d487852765a /sys/dev
parentec31d2fb1122fdbebce216a6e8b74b82d3ba1c99 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/altera/atse/if_atse.c3
-rw-r--r--sys/dev/altera/atse/if_atsereg.h3
-rw-r--r--sys/dev/altera/msgdma/msgdma.c1
-rw-r--r--sys/dev/altera/pio/pio.h1
-rw-r--r--sys/dev/altera/softdma/softdma.c1
5 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/altera/atse/if_atse.c b/sys/dev/altera/atse/if_atse.c
index 9444c749463e..b87bad6495c4 100644
--- a/sys/dev/altera/atse/if_atse.c
+++ b/sys/dev/altera/atse/if_atse.c
@@ -588,7 +588,6 @@ atse_get_eth_address(struct atse_softc *sc)
if (sc->atse_eth_addr[0] == 0x00 && sc->atse_eth_addr[1] == 0x07 &&
sc->atse_eth_addr[2] == 0xed && sc->atse_eth_addr[3] == 0xff &&
sc->atse_eth_addr[4] == 0xed && sc->atse_eth_addr[5] == 0x15) {
-
device_printf(sc->atse_dev, "Factory programmed Ethernet "
"hardware address blacklisted. Falling back to random "
"address to avoid collisions.\n");
@@ -1177,7 +1176,6 @@ static struct atse_rx_err_stats_regs {
const char *name;
const char *descr;
} atse_rx_err_stats_regs[] = {
-
#define ATSE_RX_ERR_FIFO_THRES_EOP 0 /* FIFO threshold reached, on EOP. */
#define ATSE_RX_ERR_ELEN 1 /* Frame/payload length not valid. */
#define ATSE_RX_ERR_CRC32 2 /* CRC-32 error. */
@@ -1559,7 +1557,6 @@ atse_miibus_statchg(device_t dev)
if ((mii->mii_media_status & (IFM_ACTIVE | IFM_AVALID)) ==
(IFM_ACTIVE | IFM_AVALID)) {
-
switch (IFM_SUBTYPE(mii->mii_media_active)) {
case IFM_10_T:
val4 |= BASE_CFG_COMMAND_CONFIG_ENA_10;
diff --git a/sys/dev/altera/atse/if_atsereg.h b/sys/dev/altera/atse/if_atsereg.h
index bf773e8e856c..5841d14f759e 100644
--- a/sys/dev/altera/atse/if_atsereg.h
+++ b/sys/dev/altera/atse/if_atsereg.h
@@ -118,7 +118,6 @@ static char *fifo_memory_block[] = {
#define PCS_TXRX_ENABLE_DYNAMIC_RECONF 0 /* Dynamic trans. reconfig. */
#define PCS_TXRX_STARTING_CHANNEL 0 /* 0..284. */
-
/* -------------------------------------------------------------------------- */
/* XXX more values based on the bitmaps provided. Cleanup. */
@@ -397,7 +396,6 @@ static char *fifo_memory_block[] = {
/* 0xC8 - 0xCF, Reserved; set to zero, ignore on read. */
/* 0xD7 - 0xFF, Reserved; set to zero, ignore on read. */
-
/* -------------------------------------------------------------------------- */
/* DE4 Intel Strata Flash Ethernet Option Bits area. */
@@ -457,7 +455,6 @@ struct atse_softc {
struct mtx br_mtx;
};
-
int atse_attach(device_t);
int atse_detach_dev(device_t);
void atse_detach_resources(device_t);
diff --git a/sys/dev/altera/msgdma/msgdma.c b/sys/dev/altera/msgdma/msgdma.c
index e9b5da14c5a1..0200e392f5b2 100644
--- a/sys/dev/altera/msgdma/msgdma.c
+++ b/sys/dev/altera/msgdma/msgdma.c
@@ -399,7 +399,6 @@ msgdma_desc_alloc(struct msgdma_softc *sc, struct msgdma_channel *chan,
return (0);
}
-
static int
msgdma_channel_alloc(device_t dev, struct xdma_channel *xchan)
{
diff --git a/sys/dev/altera/pio/pio.h b/sys/dev/altera/pio/pio.h
index 710276fc8160..9bb328fe1ea2 100644
--- a/sys/dev/altera/pio/pio.h
+++ b/sys/dev/altera/pio/pio.h
@@ -40,4 +40,3 @@
#define PIO_EDGECAPT 0x0c
#define PIO_OUTSET 0x10
#define PIO_OUTCLR 0x14
-
diff --git a/sys/dev/altera/softdma/softdma.c b/sys/dev/altera/softdma/softdma.c
index 7d4932083b0c..143672ee7cc7 100644
--- a/sys/dev/altera/softdma/softdma.c
+++ b/sys/dev/altera/softdma/softdma.c
@@ -501,7 +501,6 @@ softdma_process_descriptors(struct softdma_channel *chan,
desc = &chan->descs[chan->idx_tail];
while (desc != NULL) {
-
if ((desc->control & CONTROL_OWN) == 0) {
break;
}