From nobody Mon Feb 21 10:12:03 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 C708E19DEE53; Mon, 21 Feb 2022 10:12:03 +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 4K2J4g3VP0z4Zbl; Mon, 21 Feb 2022 10:12:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645438323; 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=iQbax+EqoPS8ae1m4NNBM2H2FCA8UvtDHhx7YWqXbGg=; b=OENUKBdRY+6zE982n+aNdja5xi/a3w1fUdeisk2dyQLJJMHJ8wHIOCc2Qvv0MQSlfuuio8 wZ8DkA6bkcWKcKaonKy6QdCDnDrE3bDY3fjVArUfp3POyIYxOJysl6XRiT07KiYnpaUVLb SIT001b8SuvcLUzC4PZlax9fa1qooUNR5yO6tNEPU3rCA1ePKE3xf+iAVbiXuniNCuJTY4 1KcD5CZbnsF0WyGaFg34LeHKRi8DVB3eAMsxPrIRdBiUD0xxqpIylbsN+Rmt0rTorov3KN tqTcf1uvITExILqxZ3X0+U8YBSBTxu+e/yigeDGwJ7GcgnqYWXE7y+dDutqekQ== 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 32BB65BF7; Mon, 21 Feb 2022 10:12:03 +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 21LAC3bR009238; Mon, 21 Feb 2022 10:12:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21LAC32k009229; Mon, 21 Feb 2022 10:12:03 GMT (envelope-from git) Date: Mon, 21 Feb 2022 10:12:03 GMT Message-Id: <202202211012.21LAC32k009229@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 3dc60bab2750 - main - arm: allwinner: aw_gpio: Plug set but not used variable 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3dc60bab2750cdab9963c179786cd7d4f1931303 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645438323; 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=iQbax+EqoPS8ae1m4NNBM2H2FCA8UvtDHhx7YWqXbGg=; b=ohY/Nvv21Biqi++UxYAoy3+bfsVPgaSiX/cwUlL8B1t64k7lFIL+9rjdWTFs/kaJFuLeAh RNrOz2yYRH22BJajRvEElBbY3TRorvcMs6GPsTR6aaGyKdN74Ftola0lkHENzZiHKXbGQA ET3f9WEd9ceP/AUK2Q4lxqZA6OlwPtOxysGHnuR4Zs6f4O6WlWSgf9T6COmU/g0TGHWbVW 3sA1oCgmMcM29LaWlr3Sb3p2D3FkKQLXxh54WsbPxDnCtVabqF4eFFOFCpc6Sxgnv6gKre /5j2LIoGLvfIc87lzaHT/lzPGWBOpE8JTIp5IUI1fWRFwIO43uUIYUe6iHKieQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645438323; a=rsa-sha256; cv=none; b=NymEsgCbmRFa1d+kNjVaLHMBZ8MovFNa/EWxWu6dzhcXy88MRdvfg4A05t/+g/d/AlOUxR ScJIg4DIK18aiUQKYHVLx3eHxds8yWh+PYkVXuEVCUc6QEClcFkVtAkDMFDZAQ48iFN/up /mcUoBNZaSmavQG1Ahv0VHYaXCzgANhlsDCK5vVM51I1/V4dP6/GWcfwz4aVYOBWoMe1P+ JlxBtzZVjeJwjdD3NzkxqaqhoMCcbYq9D3WBBN30DXX/agtl6kzAAkacHEipvzDxOh4yIK pXkHp2QBMWqz9t4QbONrKO42zl9D6ITdLHkYvQV3dzjrLIrlD/1D3DZti9C5Rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=3dc60bab2750cdab9963c179786cd7d4f1931303 commit 3dc60bab2750cdab9963c179786cd7d4f1931303 Author: Emmanuel Vadot AuthorDate: 2022-02-21 09:53:58 +0000 Commit: Emmanuel Vadot CommitDate: 2022-02-21 10:08:05 +0000 arm: allwinner: aw_gpio: Plug set but not used variable Sponsored by: Beckhoff Automation GmbH & Co. KG --- sys/arm/allwinner/aw_gpio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arm/allwinner/aw_gpio.c b/sys/arm/allwinner/aw_gpio.c index c6be70aec493..1221384fb875 100644 --- a/sys/arm/allwinner/aw_gpio.c +++ b/sys/arm/allwinner/aw_gpio.c @@ -820,14 +820,13 @@ aw_gpio_pin_config_32(device_t dev, uint32_t first_pin, uint32_t num_pins, uint32_t *pin_flags) { struct aw_gpio_softc *sc; - uint32_t bank, pin; + uint32_t pin; int err; sc = device_get_softc(dev); if (first_pin > sc->conf->padconf->npins) return (EINVAL); - bank = sc->conf->padconf->pins[first_pin].port; if (sc->conf->padconf->pins[first_pin].pin != 0) return (EINVAL); @@ -1309,20 +1308,21 @@ aw_gpio_pic_setup_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) { struct aw_gpio_softc *sc; - struct gpio_irqsrc *gi; uint32_t irqcfg; uint32_t pinidx, reg; u_int irq, mode; int err; sc = device_get_softc(dev); - gi = (struct gpio_irqsrc *)isrc; + err = 0; switch (data->type) { case INTR_MAP_DATA_GPIO: err = aw_gpio_pic_map_gpio(sc, (struct intr_map_data_gpio *)data, &irq, &mode); + if (err != 0) + return (err); break; default: return (ENOTSUP);