[PATCH 1/3] ARM: CCMX51: Remove excess assignment

Alexander Shiyan eagle.alexander923 at gmail.com
Tue Apr 19 00:21:21 PDT 2022


Default assignment for board index is already done in array initialization.

Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
---
 arch/arm/boards/ccxmx51/ccxmx51.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c b/arch/arm/boards/ccxmx51/ccxmx51.c
index dfc26cd835..cbf06e6cd6 100644
--- a/arch/arm/boards/ccxmx51/ccxmx51.c
+++ b/arch/arm/boards/ccxmx51/ccxmx51.c
@@ -245,8 +245,6 @@ static __init int ccxmx51_init(void)
 		hang();
 	}
 
-	ccxmx_id = &ccxmx51_ids[hwid[0]];
-
 	switch (hwid[2] & 0xc0) {
 	case 0x00:
 		manloc = 'B';
-- 
2.32.0




More information about the barebox mailing list