Skip to contentSkip to conversation

p1_p2_rdb: Fix unused variable warning

PATCH In review Tom Rini 2 participants 3 messages Apr 19, 2017 – May 9, 2017

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 p1_p2_rdb: Fix unused variable warning

With gcc-6 we see a warning that sysclk_tbl is defined but unused, so remove it.

---
 board/freescale/p1_p2_rdb_pc/spl.c | 5 -----
 1 file changed, 5 deletions(-)
board/freescale/p1_p2_rdb_pc/spl.c +0 -5
index 1cf3497aa688..ca7ba5754e25 100644
@@ -17,11 +17,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static const u32 sysclk_tbl[] = {
-	66666000, 7499900, 83332500, 8999900,
-	99999000, 11111000, 12499800, 13333200
-};
-
 phys_size_t get_effective_memsize(void)
 {
 	return CONFIG_SYS_L2_SIZE;
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 p1_p2_rdb: Fix unused variable warning

Quoted 16 lines · Tom Rini

With gcc-6 we see a warning that sysclk_tbl is defined but unused, so remove it.

---
 board/freescale/p1_p2_rdb_pc/spl.c | 5 -----
 1 file changed, 5 deletions(-)
board/freescale/p1_p2_rdb_pc/spl.c +0 -0
index 1cf3497aa688..ca7ba5754e25 100644
@@ -17,11 +17,6 @@
 

board/freescale/p1_p2_rdb_pc/spl.c line 22

Quoted 10 lines
board/freescale/p1_p2_rdb_pc/spl.c +0 -5
 DECLARE_GLOBAL_DATA_PTR;
 
-static const u32 sysclk_tbl[] = {
-	66666000, 7499900, 83332500, 8999900,
-	99999000, 11111000, 12499800, 13333200
-};
-
 phys_size_t get_effective_memsize(void)
 {
 	return CONFIG_SYS_L2_SIZE;

Thanks for catching this.

author
#2 lore raw
In reply to Tom Rini
Quoted 6 lines · Tom Rini

With gcc-6 we see a warning that sysclk_tbl is defined but unused, so remove it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170509/645b80f4/attachment.sig>