From nobody Sun Oct 2 04:29:41 2022 X-Original-To: dev-commits-src-branches@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 4Mg9wj5QFdz4dsxm; Sun, 2 Oct 2022 04:29:41 +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 4Mg9wj4xcBz45Qt; Sun, 2 Oct 2022 04:29:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684981; 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=MaQFwVX15gfTz9xKaV5h+M8tPLBuU3OZ+t8EqS9kcbE=; b=sJ9qhArtvSL80hdd5/XYtl1DuB4bJQrSj4y1HLpR32Et/8RvUDPMhDQsHcQfnnU8Y45nB5 SBu/2dyYDOktyagdAgy5F+l9+tc0jUa5ky0EQ2XcKyCzoUMHQI+EfQ+gmqzGiimB4EHOPk 2r+YdlyNi1mvIXw7bZU/rS4jXR8xO4bzO+e9rxcKMaPjJBoE01V5leoJC/O2aoXTWrgmMe 2O1fcnOf549aJ6SYgPMM5IZOLA5rW63nr7SpLhDciR2qeZBCGFDZ5sUYeb6OqIFT1CaNoa WLMi8Yoj1fcVAWUxE7l+ggPzuwII7CkwOtzrdnldWopHNO4nZ7qz+aDYSIYnQA== 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 4Mg9wj3yWvzlbm; Sun, 2 Oct 2022 04:29:41 +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 2924TfOX058523; Sun, 2 Oct 2022 04:29:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924TfdJ058522; Sun, 2 Oct 2022 04:29:41 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:29:41 GMT Message-Id: <202210020429.2924TfdJ058522@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 6c839ab46121 - stable/13 - ppc_detect_fifo: eliminate write only variable cc List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 6c839ab46121d9de0d75c44717c5c681e4e41da9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684981; 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=MaQFwVX15gfTz9xKaV5h+M8tPLBuU3OZ+t8EqS9kcbE=; b=Lzl4opp0rbQGcS18tg63PNIL6I7SVk/CfMfyC///R0mbb8r4x0o//quYcN51j6xycwttYC 6sBSUOR87gmVwq3t9saZo1AOp+RcXjhSFI0UD3m9O99WyOqDBkJaQbRocL+t7n1+MojCbl erWTJ+YCjBJUC26oy7eX+uCJ6sMbPRjoHGYI/ZEgXrHh6rHSpFQX/N6PI1tCDl/bStRS4g EOIn0zxVtvQkIf6bE1ad/roqxNWx1PU9L775Kg/pY1OKchtYklyBqBTrMFGqY8dkUji+67 j8Nfn1E+ZVjO3Zkk4IJaaHIryc6NGOk5RuxMhBcpoJkuDUGhW3GeGIxEb2jv+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664684981; a=rsa-sha256; cv=none; b=gXM8PkfoO7hJlgJX/z3epFpCg1Cp5GGIe6kT3aF+ls9HMq7F0HxNhvRHbXPxt2QJucGqrq ns5W0d6AkzOyVk4t84gzTar/JNMZbpKlW64Ftn+g+JRcbt4naVSkcv+aXn+uQanHU7ziXR 2mHvaw0m+0mXtXtvRq0oB8eORsxVED47s/6DN45TF9BBnNWlutAaGGYxxrQHqNeU//QKn8 rr4ixELyKorWJYsoVrk98evBF5McC5jQY5XTrVIm5ml5BMTAh+HanBzGoAP8D737uxAKTt dci6Ph+8sZ6kCKO7KiIPjEZfe43O55POssg+gmBzJy+fGz0Mf369+y86Ko0clA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6c839ab46121d9de0d75c44717c5c681e4e41da9 commit 6c839ab46121d9de0d75c44717c5c681e4e41da9 Author: Warner Losh AuthorDate: 2022-07-08 17:53:31 +0000 Commit: Warner Losh CommitDate: 2022-10-02 04:25:53 +0000 ppc_detect_fifo: eliminate write only variable cc Sponsored by: Netflix (cherry picked from commit 94885fbd042b61eec97f20ea06a9e96fb05f5492) --- sys/dev/ppc/ppc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c index 1004c6b46432..afc9e4b2dd9f 100644 --- a/sys/dev/ppc/ppc.c +++ b/sys/dev/ppc/ppc.c @@ -164,7 +164,7 @@ static int ppc_detect_fifo(struct ppc_data *ppc) { char ecr_sav; - char ctr_sav, ctr, cc; + char ctr_sav, ctr; short i; /* save registers */ @@ -194,7 +194,7 @@ ppc_detect_fifo(struct ppc_data *ppc) for (i=0; i<1024; i++) { if (r_ecr(ppc) & PPC_FIFO_EMPTY) break; - cc = r_fifo(ppc); + r_fifo(ppc); } if (i >= 1024) {