git: 0ae6b3fb4f29 - stable/13 - fdt_win_process_child: eliminate write only size variable

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

URL: https://cgit.FreeBSD.org/src/commit/?id=0ae6b3fb4f2985805650d58d848c23ef8016f554

commit 0ae6b3fb4f2985805650d58d848c23ef8016f554
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

    fdt_win_process_child: eliminate write only size variable
    
    Sponsored by:           Netflix
    
    (cherry picked from commit e10ac1ed2cae458f25e437fb166b4f03bddcd358)
---
 sys/arm/mv/mv_common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/arm/mv/mv_common.c b/sys/arm/mv/mv_common.c
index 6aa63cc5a90e..c2e25c686583 100644
--- a/sys/arm/mv/mv_common.c
+++ b/sys/arm/mv/mv_common.c
@@ -2688,7 +2688,7 @@ fdt_win_process_child(phandle_t child, struct soc_node_spec *soc_node,
 {
 	int addr_cells, size_cells;
 	pcell_t reg[8];
-	u_long size, base;
+	u_long base;
 
 	if (fdt_addrsize_cells(OF_parent(child), &addr_cells,
 	    &size_cells))
@@ -2703,7 +2703,7 @@ fdt_win_process_child(phandle_t child, struct soc_node_spec *soc_node,
 		base = fdt_data_get(&reg[0], addr_cells);
 	else
 		base = fdt_data_get(&reg[addr_cells - 2], 2);
-	size = fdt_data_get(&reg[addr_cells], size_cells);
+	fdt_data_get(&reg[addr_cells], size_cells);
 
 	if (soc_node->valid_handler != NULL)
 		if (!soc_node->valid_handler())