projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6d2953
)
i2c: mpc: remove useless variable initialization
author
Wolfram Sang
<wsa@the-dreams.de>
Fri, 27 Oct 2017 20:24:44 +0000
(22:24 +0200)
committer
Wolfram 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
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-mpc.c
b/drivers/i2c/busses/i2c-mpc.c
index 2b221a514974376e204ea77d1c643fdecc5a2b79..950a9d74f54db35620c87dbda3f765979900655c 100644
(file)
--- 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;