altera: clean up empty lines in .c and .h files

This commit is contained in:
Mateusz Guzik 2020-09-01 21:38:18 +00:00
parent ec31d2fb11
commit a3e2cdf8a6
5 changed files with 0 additions and 9 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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)
{

View File

@ -40,4 +40,3 @@
#define PIO_EDGECAPT 0x0c
#define PIO_OUTSET 0x10
#define PIO_OUTCLR 0x14

View File

@ -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;
}