board: sunxi: Remove unused local variables
PATCH 1/1 board: sunxi: Remove unused local variables
variables buf from board_mmc_init, and ret from misc_init_r were unused on the functions, so remove it.
Signed-off-by Jagan Teki <[email protected]>
--- board/sunxi/board.c | 2 -- 1 file changed, 2 deletions(-)
board/sunxi/board.c +0 -2
@@ -503,7 +503,6 @@ static void mmc_pinmux_setup(int sdc)int board_mmc_init (bd_t *bis) {__maybe_unused struct mmc *mmc0, *mmc1; -__maybe_unused char buf[512 ];mmc_pinmux_setup (CONFIG_MMC_SUNXI_SLOT ); mmc0 =sunxi_mmc_init (CONFIG_MMC_SUNXI_SLOT );
@@ -759,7 +758,6 @@ static void setup_environment(const void *fdt)int misc_init_r (void ) { -__maybe_unused int ret;uint boot;env_set ("fel_booted" ,NULL );
Signature · 1 line
2.18.0.321.gffc6fa0e3
PATCH 1/1 board: sunxi: Remove unused local variables
Quoted 4 lines · Jagan Teki
variables buf from
board_mmc_init, and ret frommisc_init_rwere unused on the functions, so remove it.Signed-off-by Jagan Teki <[email protected]>
Acked-by Maxime Ripard <[email protected]>
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180820/4be8cd7c/attachment.sig>
PATCH 1/1 board: sunxi: Remove unused local variables
Quoted 7 lines · Maxime Ripard
Quoted 4 lines · Jagan Teki
variables buf from
board_mmc_init, and ret frommisc_init_rwere unused on the functions, so remove it.Signed-off-by Jagan Teki <[email protected]>Acked-by Maxime Ripard <[email protected]>
Applied to u-boot-sunxi/master