瀏覽代碼

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>
Markus Elfring 9 年之前
父節點
當前提交
53b34b8d88
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mfd/smsc-ece1099.c

+ 1 - 1
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);