summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2017-10-27 22:24:44 +0200
committerWolfram Sang <wsa@the-dreams.de>2017-11-01 23:51:49 +0100
commitaf3366753fb530528349e05e0953b7357504084a (patch)
treed3f3db697a17d27379bc648019a19b63ec3844c4 /drivers/i2c
parentMerge branch 'i2c/sbs-manager' into i2c/for-4.15 (diff)
downloadlinux-af3366753fb530528349e05e0953b7357504084a.tar.xz
linux-af3366753fb530528349e05e0953b7357504084a.zip
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-mpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c
index 2b221a514974..950a9d74f54d 100644
--- a/drivers/i2c/busses/i2c-mpc.c
+++ b/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)
{
- struct device_node *node = NULL;
+ struct device_node *node;
u32 __iomem *reg;
u32 val = 0;