From owner-svn-src-all@freebsd.org Tue Sep 1 22:01:57 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 DA94C37D8E5; Tue, 1 Sep 2020 22:01:57 +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 4Bh1J4207Fz4bcw; Tue, 1 Sep 2020 22:01:55 +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 653E320616; Tue, 1 Sep 2020 22:01:55 +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 081M1tNK050465; Tue, 1 Sep 2020 22:01:55 GMT (envelope-from mjg@FreeBSD.org) Received: (from mjg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 081M1sgf050459; Tue, 1 Sep 2020 22:01:54 GMT (envelope-from mjg@FreeBSD.org) Message-Id: <202009012201.081M1sgf050459@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 22:01:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365185 - head/sys/dev/ofw X-SVN-Group: head X-SVN-Commit-Author: mjg X-SVN-Commit-Paths: head/sys/dev/ofw X-SVN-Commit-Revision: 365185 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 22:01:58 -0000 Author: mjg Date: Tue Sep 1 22:01:53 2020 New Revision: 365185 URL: https://svnweb.freebsd.org/changeset/base/365185 Log: ofw: clean up empty lines in .c and .h files Modified: head/sys/dev/ofw/ofw_bus_subr.c head/sys/dev/ofw/ofw_cpu.c head/sys/dev/ofw/ofw_graph.h head/sys/dev/ofw/ofw_standard.c head/sys/dev/ofw/ofwpci.c head/sys/dev/ofw/openfirmio.c Modified: head/sys/dev/ofw/ofw_bus_subr.c ============================================================================== --- head/sys/dev/ofw/ofw_bus_subr.c Tue Sep 1 22:01:41 2020 (r365184) +++ head/sys/dev/ofw/ofw_bus_subr.c Tue Sep 1 22:01:53 2020 (r365185) @@ -183,7 +183,7 @@ ofw_bus_status_okay(device_t dev) if (status == NULL || strcmp(status, "okay") == 0 || strcmp(status, "ok") == 0) return (1); - + return (0); } Modified: head/sys/dev/ofw/ofw_cpu.c ============================================================================== --- head/sys/dev/ofw/ofw_cpu.c Tue Sep 1 22:01:41 2020 (r365184) +++ head/sys/dev/ofw/ofw_cpu.c Tue Sep 1 22:01:53 2020 (r365185) @@ -361,7 +361,6 @@ ofw_cpu_early_foreach(ofw_cpu_foreach_cb callback, boo for (child = OF_child(node); child != 0; child = OF_peer(child), id = next_id) { - /* Check if child is a CPU */ memset(device_type, 0, sizeof(device_type)); rv = OF_getprop(child, "device_type", device_type, Modified: head/sys/dev/ofw/ofw_graph.h ============================================================================== --- head/sys/dev/ofw/ofw_graph.h Tue Sep 1 22:01:41 2020 (r365184) +++ head/sys/dev/ofw/ofw_graph.h Tue Sep 1 22:01:53 2020 (r365185) @@ -41,4 +41,3 @@ phandle_t ofw_graph_get_remote_parent(phandle_t remote device_t ofw_graph_get_device_by_port_ep(phandle_t node, uint32_t port_id, uint32_t ep_id); #endif /* _OFW_GRAPH_H_ */ - Modified: head/sys/dev/ofw/ofw_standard.c ============================================================================== --- head/sys/dev/ofw/ofw_standard.c Tue Sep 1 22:01:41 2020 (r365184) +++ head/sys/dev/ofw/ofw_standard.c Tue Sep 1 22:01:53 2020 (r365185) @@ -136,7 +136,6 @@ static ofw_method_t ofw_std_methods[] = { OFWMETHOD(ofw_release, ofw_std_release), OFWMETHOD(ofw_enter, ofw_std_enter), OFWMETHOD(ofw_exit, ofw_std_exit), - { 0, 0 } }; Modified: head/sys/dev/ofw/ofwpci.c ============================================================================== --- head/sys/dev/ofw/ofwpci.c Tue Sep 1 22:01:41 2020 (r365184) +++ head/sys/dev/ofw/ofwpci.c Tue Sep 1 22:01:53 2020 (r365185) @@ -103,7 +103,6 @@ static struct rman *ofw_pci_get_rman(struct ofw_pci_so * Driver methods. */ static device_method_t ofw_pci_methods[] = { - /* Device interface */ DEVMETHOD(device_attach, ofw_pci_attach), @@ -408,7 +407,6 @@ ofw_pci_alloc_resource(device_t bus, device_t child, i struct resource *rv; struct rman *rm; int needactivate; - needactivate = flags & RF_ACTIVE; flags &= ~RF_ACTIVE; Modified: head/sys/dev/ofw/openfirmio.c ============================================================================== --- head/sys/dev/ofw/openfirmio.c Tue Sep 1 22:01:41 2020 (r365184) +++ head/sys/dev/ofw/openfirmio.c Tue Sep 1 22:01:53 2020 (r365185) @@ -151,7 +151,6 @@ openfirm_ioctl(struct cdev *dev, u_long cmd, caddr_t d name = value = NULL; error = 0; switch (cmd) { - case OFIOCGET: case OFIOCGETPROPLEN: if (node == 0)