Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Markus Elfring and committed by
Lee Jones
53b34b8d d313cdde

+1 -1
+1 -1
drivers/mfd/smsc-ece1099.c
··· 36 36 { 37 37 struct smsc *smsc; 38 38 int devid, rev, venid_l, venid_h; 39 - int ret = 0; 39 + int ret; 40 40 41 41 smsc = devm_kzalloc(&i2c->dev, sizeof(struct smsc), 42 42 GFP_KERNEL);