projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d313cdd
)
mfd: smsc-ece1099: Delete an unnecessary variable initialisation in smsc_i2c_probe()
author
Markus Elfring
<elfring@users.sourceforge.net>
Sun, 26 Jun 2016 12:14:54 +0000
(14:14 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 29 Jun 2016 09:16:26 +0000
(10:16 +0100)
The variable "ret" will be set to an appropriate value a bit later.
Thus omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/smsc-ece1099.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/smsc-ece1099.c
b/drivers/mfd/smsc-ece1099.c
index 7f89e89b8a5ee1f2b03e8e7e0fc528b731bea53a..2aaf89fa66c399dd36ddc4cae42b2fcf26aabeed 100644
(file)
--- a/
drivers/mfd/smsc-ece1099.c
+++ b/
drivers/mfd/smsc-ece1099.c
@@
-36,7
+36,7
@@
static int smsc_i2c_probe(struct i2c_client *i2c,
{
struct smsc *smsc;
int devid, rev, venid_l, venid_h;
- int ret
= 0
;
+ int ret;
smsc = devm_kzalloc(&i2c->dev, sizeof(struct smsc),
GFP_KERNEL);