From nobody Sat Apr 09 01:31:46 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BC3041A8B88D; Sat, 9 Apr 2022 01:31:46 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZyJf4wFLz4jkr; Sat, 9 Apr 2022 01:31:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649467906; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FxX4kWT7wyxrByEAG9VKQ07+t/LGW+4KLv81ptIZNWc=; b=m1t+sOi0otSP+G/VP4/suTQUbUT665sYsulRPIQLN10qE6G/HSl941Z+7/aBPv5z5j9UKU +Gs6iSBGV9Sgolz18ZJCNnJBVSVd5jkxn+VDoFp+WpRtAKbTnxhrzbJN4+OxkMFdOJiUxf 8KFgTt/4595xSh6H3D3/g68llARmQOEIgwYvQKIoAljhKknn77io+KYQVkmH7SwVEmvlB0 rHdHrWeTLfzkrBCoZZkZSW6aWyv92nd+C8N8Mis76bPTEKVLrbOJ0U7yo1t/fsWCwPj2rb 8o4S5WLlvsAkhUYcXzvrnxKhF5YaHURCa7VL9qK1pB+qAHIS79dm//igjWPy7w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8891A108D0; Sat, 9 Apr 2022 01:31:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2391VkTZ049368; Sat, 9 Apr 2022 01:31:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2391Vknf049367; Sat, 9 Apr 2022 01:31:46 GMT (envelope-from git) Date: Sat, 9 Apr 2022 01:31:46 GMT Message-Id: <202204090131.2391Vknf049367@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: c16bfb03cb83 - main - arm mv: Remove unused variables. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c16bfb03cb834fb4b5ae43271f9aec1feab2782b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649467906; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FxX4kWT7wyxrByEAG9VKQ07+t/LGW+4KLv81ptIZNWc=; b=mFD+1q1zVcKon4d9CeCzqWfQySHbsJkFxrKM9XG7MxmvOuR+wDizdOYMOP6qLpS47gBYb1 0st5AryNesEQO/8mlYv+mJ4eUfRRZIOwRscYqbY+C8TjpRRh7ott6ticra9FpeukkZwFC2 pPUZqyHjPAiTvjtoVHIn8HPhLjQKsvsYJ0LM1Ub3lC5vJmlaulPD6BfORE+ij6GZcVIsTn erSZ/UcGtwvUOodLNFwet9EqYBSs6dD/LtsypqbqkVajpjrCErAjbzFIg150zE3pHDNlFk DKZEMCNnoQCmru3VIc/s0OzUDtxdshPhS33x0h7EM8xQ3ylWyMEI4IzaqkWuZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649467906; a=rsa-sha256; cv=none; b=xnESrK5UDCiAM54Yzhsj+Ny62LF7Xowss+MvpqFje46tG+SbNq7UPv0C9V96W179quYIBk seeOZj3Mi+ao7jCAdjQatNFW3HTnfnk+Bk7Co22JRuoh+mVorh9EnS4uFoixs1k3aWjO4N JyQOjKqivcRno2RocPaBnb0YARMZw4R+pksmoyNNOwd2sbGHzbil0LgmKeiCvz9UJBJIqW 0hyn059eGeJKggeiciv64Nc8UPylNtURzhzRYz0j4ATEA7Ce210u8m9e3Th8PiEKKyhlN1 EZ54gd6wv0TWP2BK/soUSyTIjnjvif0WJ5hxySR0QI4RylGQhBtGC8Lp50Euwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c16bfb03cb834fb4b5ae43271f9aec1feab2782b commit c16bfb03cb834fb4b5ae43271f9aec1feab2782b Author: John Baldwin AuthorDate: 2022-04-09 01:31:29 +0000 Commit: John Baldwin CommitDate: 2022-04-09 01:31:29 +0000 arm mv: Remove unused variables. --- sys/arm/mv/clk/periph_clk_d.c | 8 -------- sys/arm/mv/clk/periph_clk_fixed.c | 2 -- sys/arm/mv/clk/periph_clk_gate.c | 3 --- sys/arm/mv/clk/periph_clk_mux_gate.c | 4 ---- sys/arm/mv/mv_ap806_sei.c | 3 --- sys/arm/mv/mv_pci.c | 4 ++-- sys/arm/mv/mv_thermal.c | 6 ------ sys/arm/mv/mvebu_pinctrl.c | 3 --- 8 files changed, 2 insertions(+), 31 deletions(-) diff --git a/sys/arm/mv/clk/periph_clk_d.c b/sys/arm/mv/clk/periph_clk_d.c index 4c16b9b5a2ac..007bec14fe11 100644 --- a/sys/arm/mv/clk/periph_clk_d.c +++ b/sys/arm/mv/clk/periph_clk_d.c @@ -68,11 +68,9 @@ a37x0_periph_d_register_full_clk_dd(struct clkdom *clkdom, struct clk_gate_def *gate; struct clk_div_def *div1; struct clk_div_def *div2; - const char *dev_name; int error, dev_id; dev_id = device_def->common_def.device_id; - dev_name = device_def->common_def.device_name; tbg_mux = &device_def->clk_def.full_dd.tbg_mux; div1 = &device_def->clk_def.full_dd.div1; div2 = &device_def->clk_def.full_dd.div2; @@ -134,11 +132,9 @@ a37x0_periph_d_register_full_clk(struct clkdom *clkdom, struct clk_mux_def *clk_mux; struct clk_gate_def *gate; struct clk_div_def *div; - const char *dev_name; int error, dev_id; dev_id = device_def->common_def.device_id; - dev_name = device_def->common_def.device_name; tbg_mux = &device_def->clk_def.full_d.tbg_mux; div = &device_def->clk_def.full_d.div; gate = &device_def->clk_def.full_d.gate; @@ -190,10 +186,8 @@ a37x0_periph_d_register_periph_cpu(struct clkdom *clkdom, struct clk_mux_def *clk_mux; struct clk_mux_def *tbg_mux; struct clk_div_def *div; - const char *dev_name; int error, dev_id; - dev_name = device_def->common_def.device_name; dev_id = device_def->common_def.device_id; tbg_mux = &device_def->clk_def.cpu.tbg_mux; div = &device_def->clk_def.cpu.div; @@ -237,10 +231,8 @@ a37x0_periph_d_register_mdd(struct clkdom *clkdom, struct clk_mux_def *clk_mux; struct clk_div_def *div1; struct clk_div_def *div2; - const char * dev_name; int error, dev_id; - dev_name = device_def->common_def.device_name; dev_id = device_def->common_def.device_id; tbg_mux = &device_def->clk_def.mdd.tbg_mux; div1 = &device_def->clk_def.mdd.div1; diff --git a/sys/arm/mv/clk/periph_clk_fixed.c b/sys/arm/mv/clk/periph_clk_fixed.c index 4482646455ef..eac27048c0ee 100644 --- a/sys/arm/mv/clk/periph_clk_fixed.c +++ b/sys/arm/mv/clk/periph_clk_fixed.c @@ -65,10 +65,8 @@ a37x0_periph_fixed_register_fixed(struct clkdom *clkdom, struct clk_fixed_def fixed_def; struct clk_gate_def *gate; struct clk_mux_def *mux; - const char *dev_name; int error, dev_id; - dev_name = device_def->common_def.device_name; dev_id = device_def->common_def.device_id; mux = &device_def->clk_def.fixed.mux; gate = &device_def->clk_def.fixed.gate; diff --git a/sys/arm/mv/clk/periph_clk_gate.c b/sys/arm/mv/clk/periph_clk_gate.c index 9037b3147b35..89e6fe44d27b 100644 --- a/sys/arm/mv/clk/periph_clk_gate.c +++ b/sys/arm/mv/clk/periph_clk_gate.c @@ -60,12 +60,9 @@ a37x0_periph_gate_register_gate(struct clkdom *clkdom, { struct clk_gate_def *gate; const char *parent_name; - const char *dev_name; int error, dev_id; dev_id = device_def->common_def.device_id; - dev_name = device_def->common_def.device_name; - gate = &device_def->clk_def.gate.gate; if (device_def->common_def.pname == NULL) diff --git a/sys/arm/mv/clk/periph_clk_mux_gate.c b/sys/arm/mv/clk/periph_clk_mux_gate.c index fd56c2b1e802..c569ea3fcfdb 100644 --- a/sys/arm/mv/clk/periph_clk_mux_gate.c +++ b/sys/arm/mv/clk/periph_clk_mux_gate.c @@ -66,10 +66,8 @@ a37x0_periph_register_mux_gate(struct clkdom *clkdom, struct clk_fixed_def fixed; struct clk_gate_def *gate; struct clk_mux_def *mux; - const char *dev_name; int error, dev_id; - dev_name = device_def->common_def.device_name; dev_id = device_def->common_def.device_id; mux = &device_def->clk_def.mux_gate.mux; gate = &device_def->clk_def.mux_gate.gate; @@ -120,10 +118,8 @@ a37x0_periph_register_mux_gate_fixed(struct clkdom * clkdom, const char *parent_names[PARENT_CNT]; struct clk_gate_def *gate; struct clk_mux_def *mux; - const char *dev_name; int error, dev_id; - dev_name = device_def->common_def.device_name; dev_id = device_def->common_def.device_id; mux = &device_def->clk_def.mux_gate_fixed.mux; gate = &device_def->clk_def.mux_gate_fixed.gate; diff --git a/sys/arm/mv/mv_ap806_sei.c b/sys/arm/mv/mv_ap806_sei.c index fad57dcad17f..7d6291cae5ba 100644 --- a/sys/arm/mv/mv_ap806_sei.c +++ b/sys/arm/mv/mv_ap806_sei.c @@ -160,12 +160,9 @@ mv_ap806_sei_disable_intr(device_t dev, struct intr_irqsrc *isrc) static int mv_ap806_sei_map(device_t dev, struct intr_map_data *data, u_int *irqp) { - struct mv_ap806_sei_softc *sc; struct intr_map_data_fdt *daf; u_int irq; - sc = device_get_softc(dev); - if (data->type != INTR_MAP_DATA_FDT) return (ENOTSUP); diff --git a/sys/arm/mv/mv_pci.c b/sys/arm/mv/mv_pci.c index 4c8da7dc7582..7b7dc9111c2b 100644 --- a/sys/arm/mv/mv_pci.c +++ b/sys/arm/mv/mv_pci.c @@ -121,7 +121,7 @@ mv_pci_ranges_decode(phandle_t node, struct mv_pci_range *io_space, struct mv_pci_range *pci_space; pcell_t addr_cells, size_cells, par_addr_cells; pcell_t *rangesptr; - pcell_t cell0, cell1, cell2; + pcell_t cell0, cell2; int tuple_size, tuples, i, rv, offset_cells, len; int portid, is_io_space; @@ -161,7 +161,7 @@ mv_pci_ranges_decode(phandle_t node, struct mv_pci_range *io_space, for (i = 0; i < tuples; i++) { cell0 = fdt_data_get((void *)rangesptr, 1); rangesptr++; - cell1 = fdt_data_get((void *)rangesptr, 1); + /* cell1 */ rangesptr++; cell2 = fdt_data_get((void *)rangesptr, 1); rangesptr++; diff --git a/sys/arm/mv/mv_thermal.c b/sys/arm/mv/mv_thermal.c index ed47f25a40c1..05000b9e06db 100644 --- a/sys/arm/mv/mv_thermal.c +++ b/sys/arm/mv/mv_thermal.c @@ -298,14 +298,12 @@ mv_thermal_attach(device_t dev) struct mv_thermal_softc *sc; struct sysctl_ctx_list *ctx; struct sysctl_oid_list *oid; - phandle_t node; char name[255]; char desc[255]; int i; sc = device_get_softc(dev); sc->dev = dev; - node = ofw_bus_get_node(dev); sc->config = (struct mv_thermal_config *) ofw_bus_search_compatible(dev, compat_data)->ocd_data; @@ -353,10 +351,6 @@ mv_thermal_attach(device_t dev) static int mv_thermal_detach(device_t dev) { - struct mv_thermal_softc *sc; - - sc = device_get_softc(dev); - return (0); } diff --git a/sys/arm/mv/mvebu_pinctrl.c b/sys/arm/mv/mvebu_pinctrl.c index 930c6878370f..e43c5a41d3a0 100644 --- a/sys/arm/mv/mvebu_pinctrl.c +++ b/sys/arm/mv/mvebu_pinctrl.c @@ -187,7 +187,6 @@ static int mv_pinctrl_attach(device_t dev) { struct mv_pinctrl_softc *sc; - phandle_t node; sc = device_get_softc(dev); sc->dev = dev; @@ -200,8 +199,6 @@ mv_pinctrl_attach(device_t dev) return (ENXIO); } - node = ofw_bus_get_node(dev); - fdt_pinctrl_register(dev, "marvell,pins"); fdt_pinctrl_configure_tree(dev);