Skip to contentSkip to conversation

board: ti: am335x_evm: Remove duplicate setting of bd_ram_ofs member

PATCH New Tom Rini 2 participants 2 messages Jun 4, 2020 – Jun 6, 2020

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 board: ti: am335x_evm: Remove duplicate setting of bd_ram_ofs member

With clang we get a report that we are setting this member twice. Fortunately it is to the same value, so drop the hard-coded value line.

---
 board/ti/am335x/board.c | 1 -
 1 file changed, 1 deletion(-)
board/ti/am335x/board.c +0 -1
index 4199bee2e64a..123ccaac44e5 100644
@@ -912,7 +912,6 @@ struct cpsw_platform_data am335_eth_data = {
 	.slaves			= 2,
 	.slave_data		= slave_data,
 	.ale_entries		= 1024,
-	.bd_ram_ofs		= 0x2000,
 	.mac_control		= 0x20,
 	.active_slave		= 0,
 	.mdio_base		= 0x4a101000,
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 board: ti: am335x_evm: Remove duplicate setting of bd_ram_ofs member

Quoted 14 lines · Tom Rini

With clang we get a report that we are setting this member twice. Fortunately it is to the same value, so drop the hard-coded value line.

---
  board/ti/am335x/board.c | 1 -
  1 file changed, 1 deletion(-)
board/ti/am335x/board.c +0 -0
index 4199bee2e64a..123ccaac44e5 100644

board/ti/am335x/board.c struct cpsw_platform_data am335_eth_data = { · line 917

Quoted 7 lines
board/ti/am335x/board.c +0 -1
@@ -912,7 +912,6 @@ struct cpsw_platform_data am335_eth_data = {
  	.slaves			= 2,
  	.slave_data		= slave_data,
  	.ale_entries		= 1024,
-	.bd_ram_ofs		= 0x2000,
  	.mac_control		= 0x20,
  	.active_slave		= 0,
  	.mdio_base		= 0x4a101000,
Signature · 2 lines
Best regards,
grygorii