git: 6c839ab46121 - stable/13 - ppc_detect_fifo: eliminate write only variable cc

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:29:41 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=6c839ab46121d9de0d75c44717c5c681e4e41da9

commit 6c839ab46121d9de0d75c44717c5c681e4e41da9
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:31 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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) {