Commit 46c8aa8e authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones

mfd: smsc-ece1099: Delete an error message for a failed memory allocation

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 24303ee7
...@@ -39,10 +39,8 @@ static int smsc_i2c_probe(struct i2c_client *i2c, ...@@ -39,10 +39,8 @@ static int smsc_i2c_probe(struct i2c_client *i2c,
smsc = devm_kzalloc(&i2c->dev, sizeof(struct smsc), smsc = devm_kzalloc(&i2c->dev, sizeof(struct smsc),
GFP_KERNEL); GFP_KERNEL);
if (!smsc) { if (!smsc)
dev_err(&i2c->dev, "smsc mfd driver memory allocation failed\n");
return -ENOMEM; return -ENOMEM;
}
smsc->regmap = devm_regmap_init_i2c(i2c, &smsc_regmap_config); smsc->regmap = devm_regmap_init_i2c(i2c, &smsc_regmap_config);
if (IS_ERR(smsc->regmap)) if (IS_ERR(smsc->regmap))
......
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