p1_p2_rdb: Fix unused variable warning
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.
Cc York Sun <[email protected]>
Signed-off-by Tom Rini <[email protected]>
--- board/freescale/p1_p2_rdb_pc/spl.c | 5 ----- 1 file changed, 5 deletions(-)
board/freescale/p1_p2_rdb_pc/spl.c +0 -5
@@ -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
PATCH 1/1 p1_p2_rdb: Fix unused variable warning
Quoted 16 lines · Tom Rini
With gcc-6 we see a warning that
sysclk_tblis defined but unused, so remove it.Cc York Sun <[email protected]>Signed-off-by Tom Rini <[email protected]>--- board/freescale/p1_p2_rdb_pc/spl.c | 5 ----- 1 file changed, 5 deletions(-)board/freescale/p1_p2_rdb_pc/spl.c +0
-0@@ -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
-5DECLARE_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.
Reviewed-by York Sun <[email protected]>
Quoted 6 lines · Tom Rini
With gcc-6 we see a warning that
sysclk_tblis defined but unused, so remove it.Cc York Sun <[email protected]>Signed-off-by Tom Rini <[email protected]>Reviewed-by York Sun <[email protected]>
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>