diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-06-26 14:14:54 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-06-29 10:16:26 +0100 |
commit | 53b34b8d8860833bc672b6deb77a1769b2f79b5b (patch) | |
tree | 47494f265b5f7bdd80c9e5a46147b56dbce9be63 | |
parent | d313cdde71ec9a5c327a515c37a0dca2cca00de5 (diff) | |
download | linux-stable-53b34b8d8860833bc672b6deb77a1769b2f79b5b.tar.gz linux-stable-53b34b8d8860833bc672b6deb77a1769b2f79b5b.tar.bz2 linux-stable-53b34b8d8860833bc672b6deb77a1769b2f79b5b.zip |
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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/smsc-ece1099.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/smsc-ece1099.c b/drivers/mfd/smsc-ece1099.c index 7f89e89b8a5e..2aaf89fa66c3 100644 --- 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); |