i2c: mpc: remove useless variable initialization
Subsystems (2)
PATCH 1/1 i2c: mpc: remove useless variable initialization
cppcheck rightfully says:
drivers/i2c/busses/i2c-mpc.c:329: style: Variable 'node' is reassigned a value before the old one has been used.
Signed-off-by Wolfram Sang <[email protected]>
--- drivers/i2c/busses/i2c-mpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-mpc.c +1 -1
@@ -322,7 +322,7 @@ static const struct mpc_i2c_divider mpc_i2c_dividers_8xxx[] = {static u32 mpc_i2c_get_sec_cfg_8xxx (void ) { -struct device_node *node =NULL ; +struct device_node *node;u32 __iomem *reg;u32 val =0 ;
Signature · 1 line
2.11.0
Wolfram Sang
AppliedQuoted 5 lines · Wolfram Sang
cppcheck rightfully says:
drivers/i2c/busses/i2c-mpc.c:329: style: Variable 'node' is reassigned a value before the old one has been used.Signed-off-by Wolfram Sang <[email protected]>
Applied to for-next, thanks!