From owner-svn-src-all@freebsd.org Tue Sep 1 21:58:58 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 7986337D3BC; Tue, 1 Sep 2020 21:58:58 +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 4Bh1Df2gPzz4ZKw; Tue, 1 Sep 2020 21:58:58 +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 3FF1D200F8; Tue, 1 Sep 2020 21:58:58 +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 081LwwBC048271; Tue, 1 Sep 2020 21:58:58 GMT (envelope-from mjg@FreeBSD.org) Received: (from mjg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 081Lwvs5048266; Tue, 1 Sep 2020 21:58:57 GMT (envelope-from mjg@FreeBSD.org) Message-Id: <202009012158.081Lwvs5048266@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:58:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365175 - head/sys/dev/ppc X-SVN-Group: head X-SVN-Commit-Author: mjg X-SVN-Commit-Paths: head/sys/dev/ppc X-SVN-Commit-Revision: 365175 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:58:58 -0000 Author: mjg Date: Tue Sep 1 21:58:56 2020 New Revision: 365175 URL: https://svnweb.freebsd.org/changeset/base/365175 Log: ppc: clean up empty lines in .c and .h files Modified: head/sys/dev/ppc/ppc.c head/sys/dev/ppc/ppc_acpi.c head/sys/dev/ppc/ppc_isa.c head/sys/dev/ppc/ppc_pci.c head/sys/dev/ppc/ppc_puc.c Modified: head/sys/dev/ppc/ppc.c ============================================================================== --- head/sys/dev/ppc/ppc.c Tue Sep 1 21:58:40 2020 (r365174) +++ head/sys/dev/ppc/ppc.c Tue Sep 1 21:58:56 2020 (r365175) @@ -426,7 +426,6 @@ ppc_pc873xx_detect(struct ppc_data *ppc, int chipset_m int ptr, pcr, val, i; while ((idport = pc873xx_basetab[index++])) { - /* XXX should check first to see if this location is already claimed */ /* @@ -488,7 +487,6 @@ ppc_pc873xx_detect(struct ppc_data *ppc, int chipset_m val = inb(idport + 1); /* XXX we should create a driver instance for every port found */ if (pc873xx_porttab[val & 0x3] != ppc->ppc_base) { - /* First try to change the port address to that requested... */ switch (ppc->ppc_base) { @@ -710,7 +708,6 @@ ppc_smc37c66xgt_detect(struct ppc_data *ppc, int chips int port_address[] = { -1 /* disabled */ , 0x3bc, 0x378, 0x278 }; - #define cio csr+1 /* config IO port is either 0x3F1 or 0x371 */ /* @@ -1256,7 +1253,6 @@ ppc_generic_detect(struct ppc_data *ppc, int chipset_m */ static int ppc_detect(struct ppc_data *ppc, int chipset_mode) { - #ifdef PPC_PROBE_CHIPSET int i, mode; @@ -1570,7 +1566,6 @@ ppcintr(void *arg) /* check if ppc driver has programmed the * nFault interrupt */ if (ppc->ppc_irqstat & PPC_IRQ_nFAULT) { - w_ecr(ppc, ecr | PPC_nFAULT_INTR); ppc->ppc_irqstat &= ~PPC_IRQ_nFAULT; } else { @@ -1607,7 +1602,6 @@ ppcintr(void *arg) } } } else if (ppc->ppc_irqstat & PPC_IRQ_FIFO) { - /* classic interrupt I/O */ ppc->ppc_irqstat &= ~PPC_IRQ_FIFO; } Modified: head/sys/dev/ppc/ppc_acpi.c ============================================================================== --- head/sys/dev/ppc/ppc_acpi.c Tue Sep 1 21:58:40 2020 (r365174) +++ head/sys/dev/ppc/ppc_acpi.c Tue Sep 1 21:58:56 2020 (r365175) @@ -81,7 +81,6 @@ static device_method_t ppc_acpi_methods[] = { #else DEVMETHOD(ppbus_write, ppc_write), #endif - { 0, 0 } }; Modified: head/sys/dev/ppc/ppc_isa.c ============================================================================== --- head/sys/dev/ppc/ppc_isa.c Tue Sep 1 21:58:40 2020 (r365174) +++ head/sys/dev/ppc/ppc_isa.c Tue Sep 1 21:58:56 2020 (r365175) @@ -76,7 +76,6 @@ static device_method_t ppc_isa_methods[] = { DEVMETHOD(ppbus_ecp_sync, ppc_ecp_sync), DEVMETHOD(ppbus_read, ppc_read), DEVMETHOD(ppbus_write, ppc_isa_write), - { 0, 0 } }; @@ -234,7 +233,6 @@ ppc_isa_write(device_t dev, char *buf, int len, int ho /* wait for an empty fifo */ while (!(r_ecr(ppc) & PPC_FIFO_EMPTY)) { - for (spin=100; spin; spin--) if (r_ecr(ppc) & PPC_FIFO_EMPTY) goto fifo_empty; Modified: head/sys/dev/ppc/ppc_pci.c ============================================================================== --- head/sys/dev/ppc/ppc_pci.c Tue Sep 1 21:58:40 2020 (r365174) +++ head/sys/dev/ppc/ppc_pci.c Tue Sep 1 21:58:56 2020 (r365175) @@ -67,7 +67,6 @@ static device_method_t ppc_pci_methods[] = { DEVMETHOD(ppbus_ecp_sync, ppc_ecp_sync), DEVMETHOD(ppbus_read, ppc_read), DEVMETHOD(ppbus_write, ppc_write), - { 0, 0 } }; Modified: head/sys/dev/ppc/ppc_puc.c ============================================================================== --- head/sys/dev/ppc/ppc_puc.c Tue Sep 1 21:58:40 2020 (r365174) +++ head/sys/dev/ppc/ppc_puc.c Tue Sep 1 21:58:56 2020 (r365175) @@ -69,7 +69,6 @@ static device_method_t ppc_puc_methods[] = { DEVMETHOD(ppbus_ecp_sync, ppc_ecp_sync), DEVMETHOD(ppbus_read, ppc_read), DEVMETHOD(ppbus_write, ppc_write), - { 0, 0 } };