summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/pse-pd/si3474.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/pse-pd/si3474.c b/drivers/net/pse-pd/si3474.c
index 1845b9c51cf7..2f4f241a48af 100644
--- a/drivers/net/pse-pd/si3474.c
+++ b/drivers/net/pse-pd/si3474.c
@@ -516,10 +516,8 @@ static int si3474_i2c_probe(struct i2c_client *client)
return PTR_ERR(priv->client[1]);
ret = devm_add_action_or_reset(dev, si3474_ancillary_i2c_remove, priv->client[1]);
- if (ret < 0) {
- dev_err(&priv->client[1]->dev, "Cannot register remove callback\n");
+ if (ret)
return ret;
- }
ret = i2c_smbus_read_byte_data(priv->client[1], VENDOR_IC_ID_REG);
if (ret < 0) {