git: 94885fbd042b - main - ppc_detect_fifo: eliminate write only variable cc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:31 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=94885fbd042b61eec97f20ea06a9e96fb05f5492
commit 94885fbd042b61eec97f20ea06a9e96fb05f5492
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:12:44 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:29:55 +0000
ppc_detect_fifo: eliminate write only variable cc
Sponsored by: Netflix
---
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) {