Commit 53b34b8d authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones

mfd: smsc-ece1099: Delete an unnecessary variable initialisation in smsc_i2c_probe()

The variable "ret" will be set to an appropriate value a bit later.
Thus omit the explicit initialisation at the beginning.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent d313cdde
...@@ -36,7 +36,7 @@ static int smsc_i2c_probe(struct i2c_client *i2c, ...@@ -36,7 +36,7 @@ static int smsc_i2c_probe(struct i2c_client *i2c,
{ {
struct smsc *smsc; struct smsc *smsc;
int devid, rev, venid_l, venid_h; int devid, rev, venid_l, venid_h;
int ret = 0; int ret;
smsc = devm_kzalloc(&i2c->dev, sizeof(struct smsc), smsc = devm_kzalloc(&i2c->dev, sizeof(struct smsc),
GFP_KERNEL); GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment