Skip to content
Commit 78237828 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Simon Glass
Browse files

board_f: Remove dead code from init_func_i2c



Since commit 69153988 ("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: 69153988 ("i2c: Finish dropping use of CONFIG_I2C_HARD")
Signed-off-by: default avatarOvidiu Panait <ovidiu.panait@windriver.com>
parent 02c10207
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment