]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: sunxi: Remove unused local variables
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 20 Aug 2018 11:43:15 +0000 (17:13 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 20 Aug 2018 12:40:43 +0000 (18:10 +0530)
variables buf from board_mmc_init, and ret from misc_init_r
were unused on the functions, so remove it.

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
board/sunxi/board.c

index 857d5ff0103538b70e56896ade03f6e65ffe505e..d1d7f9f40061fc927bd2c93c63b02b67cd86e491 100644 (file)
@@ -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);