git: 8358a22417fd - stable/13 - platform_mpp_init: eliminate write only tuples variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:29:17 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=8358a22417fd36513efdbbc298aea4567ec6f99b
commit 8358a22417fd36513efdbbc298aea4567ec6f99b
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:29 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:51 +0000
platform_mpp_init: eliminate write only tuples variable
Sponsored by: Netflix
(cherry picked from commit 624f60ca034505f4274a4232817062f7f6d6570c)
---
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);