瀏覽代碼

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 <wsa@the-dreams.de>
Wolfram Sang 7 年之前
父節點
當前提交
af3366753f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/i2c/busses/i2c-mpc.c

+ 1 - 1
drivers/i2c/busses/i2c-mpc.c

@@ -322,7 +322,7 @@ static const struct mpc_i2c_divider mpc_i2c_dividers_8xxx[] = {
 
 
 static u32 mpc_i2c_get_sec_cfg_8xxx(void)
 static u32 mpc_i2c_get_sec_cfg_8xxx(void)
 {
 {
-	struct device_node *node = NULL;
+	struct device_node *node;
 	u32 __iomem *reg;
 	u32 __iomem *reg;
 	u32 val = 0;
 	u32 val = 0;