[PATCH 1/2] board_f: Remove dead code from init_func_i2c

Simon Glass sjg at chromium.org
Sat Aug 22 17:09:23 CEST 2020


On Mon, 17 Aug 2020 at 12:31, Ovidiu Panait <ovidiu.panait at windriver.com> wrote:
>
> Since commit 69153988a6f4 ("i2c: Finish dropping use of CONFIG_I2C_HARD")
> init_func_i2c is wrapped only by "#if defined(CONFIG_SYS_I2C)". Because
> of this, the second ifdef within becomes pointless:
>
>  #if defined(CONFIG_SYS_I2C)
>  static int init_func_i2c(void)
>  <snip>
>      #ifdef CONFIG_SYS_I2C
>          ...
>      #else
>          ...
>      #endif
>  <snip>
>  }
>  #endif
>
> Remove the dead #else preprocessor code.
>
> Fixes: 69153988a6f ("i2c: Finish dropping use of CONFIG_I2C_HARD")
> Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com>
> ---
>
>  common/board_f.c | 4 ----
>  1 file changed, 4 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list