From nobody Tue Apr 05 04:32:04 2022 X-Original-To: dev-commits-src-main@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 5E1DD1A8FE1E; Tue, 5 Apr 2022 04:32:06 +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 4KXZVY3MJwz4fqG; Tue, 5 Apr 2022 04:32:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133125; 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=5bWpDOlQwZ45ClzhfDy9na7fi7OO2w14bO6gX/PL+2w=; b=Hp6FWoswmg4C61VHRcDOiZU5iEg8Gefu8dOvSGBBXBKSD5WlzIzWC5mERbFygplJA/1h6z ss+0RiKXFBhJuklEx2XSxgSTQvY6dtOEoDIWpNXPAxqKct8SMdDzMaF+Ak5DcePwnEDlSU QnkxtFJeafkRgSOD6DUVT69aSzQb7vTHkPgOzd25eV5+Nr586Rlpim1acJWNeENPhd4Mav ywk/9EP+szxLR9RaZHKndIzPlJQqckq53YEuKZbHTsluXGjcMlw+4UlxjCPC0truB3Brhe 4iX61atd6AHWNq/TBQQ1QxNS9MlU9ZksBBuFQZeY/tdE/WNwGjvD4DOW9juu9Q== 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 21A121FC14; Tue, 5 Apr 2022 04:32:05 +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 2354W5IA008527; Tue, 5 Apr 2022 04:32:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354W4RJ008526; Tue, 5 Apr 2022 04:32:04 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:04 GMT Message-Id: <202204050432.2354W4RJ008526@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 624f60ca0345 - main - platform_mpp_init: eliminate write only tuples variable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 624f60ca034505f4274a4232817062f7f6d6570c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133125; 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=5bWpDOlQwZ45ClzhfDy9na7fi7OO2w14bO6gX/PL+2w=; b=OnGvz1B4QdSZ+2BwVy7FWbt8yVjeTsjYCOOdW265KqMLtR8GWPraFUfBX8GY8PLkkyEDgB dkD0MumSek6jDc8Q2rfizwILojHuDbOjeUWVWT3+TgahV83KlKt5g9YBLrNjVVjB1jL98v a5yFibly3siFXWWqdgrwIdopXrMCfRO/f6kzDU269YAaizxxzPGsdWiW9iA4xtbB2fRit4 Fn7pYHqTsijCQzPeSxCi5j/NZVuzVFLh7hjGM3dmIdyIqnFJiDFBzlt2aHPux+nYTmffnc zX4+0Z+hVjopKD1sH3bmYjZaMdY6m1knY8WFmWp1y/wg+RQHWjPpZHgnnANivQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133125; a=rsa-sha256; cv=none; b=yc/lIwdngfYmm8v/hg1jd2rwFmDZjV6UviRksM6xvzO84L6qTWp0l9JGY07F7jHRJNCAcz 7/wouEf6uGJ9legF0cZu7umpWx5Q2pXxto0gF29iadpY8j4hANkQ2EMtg/X7gS2Y79zZ65 M78jh8jvOhKeRzXnprQnQkKZp5pxF2JDsbguXchq41wSn3ueSL0P2cu4ABe7SA9peBt9iG 0eSJ2YewWTanl7/dIrvSTfDzwt+ZUtDPqtYBmEqCIlX5spY0ndtwe4NTxNDwvNGqtNgHC+ R77trhO4++4EkHmhN4ait/4JW5Hwk/6xj/5+MSfvW6J2IrUhbAfcQ0ox970sLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=624f60ca034505f4274a4232817062f7f6d6570c commit 624f60ca034505f4274a4232817062f7f6d6570c Author: Warner Losh AuthorDate: 2022-04-04 23:56:02 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:29:15 +0000 platform_mpp_init: eliminate write only tuples variable Sponsored by: Netflix --- sys/arm/mv/mv_armv7_machdep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/arm/mv/mv_armv7_machdep.c b/sys/arm/mv/mv_armv7_machdep.c index 3ecd69f435a6..e37d77b9bb1b 100644 --- a/sys/arm/mv/mv_armv7_machdep.c +++ b/sys/arm/mv/mv_armv7_machdep.c @@ -160,7 +160,7 @@ platform_mpp_init(void) pcell_t pin_cells, *pinmap_ptr, pin_count; ssize_t len; int par_addr_cells, par_size_cells; - int tuple_size, tuples, rv, pins, i, j; + int tuple_size, rv, pins, i, j; int mpp_pin, mpp_function; /* @@ -194,7 +194,6 @@ moveon: tuple_size = sizeof(pcell_t) * (par_addr_cells + par_size_cells); len = OF_getprop(node, "reg", reg, sizeof(reg)); - tuples = len / tuple_size; if (tuple_size <= 0) return (EINVAL);