i2c: mpc: remove useless variable initialization
authorWolfram Sang <wsa@the-dreams.de>
Fri, 27 Oct 2017 20:24:44 +0000 (22:24 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 1 Nov 2017 22:51:49 +0000 (23:51 +0100)
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 <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mpc.c

index 2b221a514974376e204ea77d1c643fdecc5a2b79..950a9d74f54db35620c87dbda3f765979900655c 100644 (file)
@@ -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;