From owner-svn-src-all@freebsd.org Tue Sep 1 21:38:20 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0E3E837ADA6; Tue, 1 Sep 2020 21:38:20 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bh0mq6gY6z4PG5; Tue, 1 Sep 2020 21:38:19 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C9D871FFD8; Tue, 1 Sep 2020 21:38:19 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 081LcJdd032678; Tue, 1 Sep 2020 21:38:19 GMT (envelope-from mjg@FreeBSD.org) Received: (from mjg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 081LcIZH032673; Tue, 1 Sep 2020 21:38:18 GMT (envelope-from mjg@FreeBSD.org) Message-Id: <202009012138.081LcIZH032673@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mjg set sender to mjg@FreeBSD.org using -f From: Mateusz Guzik Date: Tue, 1 Sep 2020 21:38:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365109 - in head/sys/dev/altera: atse msgdma pio softdma X-SVN-Group: head X-SVN-Commit-Author: mjg X-SVN-Commit-Paths: in head/sys/dev/altera: atse msgdma pio softdma X-SVN-Commit-Revision: 365109 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 21:38:20 -0000 Author: mjg Date: Tue Sep 1 21:38:18 2020 New Revision: 365109 URL: https://svnweb.freebsd.org/changeset/base/365109 Log: altera: clean up empty lines in .c and .h files Modified: head/sys/dev/altera/atse/if_atse.c head/sys/dev/altera/atse/if_atsereg.h head/sys/dev/altera/msgdma/msgdma.c head/sys/dev/altera/pio/pio.h head/sys/dev/altera/softdma/softdma.c Modified: head/sys/dev/altera/atse/if_atse.c ============================================================================== --- head/sys/dev/altera/atse/if_atse.c Tue Sep 1 21:38:06 2020 (r365108) +++ head/sys/dev/altera/atse/if_atse.c Tue Sep 1 21:38:18 2020 (r365109) @@ -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; Modified: head/sys/dev/altera/atse/if_atsereg.h ============================================================================== --- head/sys/dev/altera/atse/if_atsereg.h Tue Sep 1 21:38:06 2020 (r365108) +++ head/sys/dev/altera/atse/if_atsereg.h Tue Sep 1 21:38:18 2020 (r365109) @@ -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. */ @@ -456,7 +454,6 @@ struct atse_softc { struct buf_ring *br; struct mtx br_mtx; }; - int atse_attach(device_t); int atse_detach_dev(device_t); Modified: head/sys/dev/altera/msgdma/msgdma.c ============================================================================== --- head/sys/dev/altera/msgdma/msgdma.c Tue Sep 1 21:38:06 2020 (r365108) +++ head/sys/dev/altera/msgdma/msgdma.c Tue Sep 1 21:38:18 2020 (r365109) @@ -399,7 +399,6 @@ msgdma_desc_alloc(struct msgdma_softc *sc, struct msgd return (0); } - static int msgdma_channel_alloc(device_t dev, struct xdma_channel *xchan) { Modified: head/sys/dev/altera/pio/pio.h ============================================================================== --- head/sys/dev/altera/pio/pio.h Tue Sep 1 21:38:06 2020 (r365108) +++ head/sys/dev/altera/pio/pio.h Tue Sep 1 21:38:18 2020 (r365109) @@ -40,4 +40,3 @@ #define PIO_EDGECAPT 0x0c #define PIO_OUTSET 0x10 #define PIO_OUTCLR 0x14 - Modified: head/sys/dev/altera/softdma/softdma.c ============================================================================== --- head/sys/dev/altera/softdma/softdma.c Tue Sep 1 21:38:06 2020 (r365108) +++ head/sys/dev/altera/softdma/softdma.c Tue Sep 1 21:38:18 2020 (r365109) @@ -501,7 +501,6 @@ softdma_process_descriptors(struct softdma_channel *ch desc = &chan->descs[chan->idx_tail]; while (desc != NULL) { - if ((desc->control & CONTROL_OWN) == 0) { break; }