git: e10ac1ed2cae - main - fdt_win_process_child: eliminate write only size variable

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 04:32:06 UTC
The branch main has been updated by imp:

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

commit e10ac1ed2cae458f25e437fb166b4f03bddcd358
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-04 23:56:31 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:29:16 +0000

    fdt_win_process_child: eliminate write only size variable
    
    Sponsored by:           Netflix
---
 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 9d2bb17cf309..6e1d12f8c7a7 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())