[media] media: pci: netup_unidvb: don't print error when adding adapter fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Tue, 9 Aug 2016 11:35:13 +0000 (08:35 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 16:56:59 +0000 (13:56 -0300)
The core will do this for us now.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Acked-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c

index c09c52bc6eabefe464546fc0d09f52146f537c7c..b49e4f9788e8693ebdafd30f90124fde928f9619 100644 (file)
@@ -327,11 +327,8 @@ static int netup_i2c_init(struct netup_unidvb_dev *ndev, int bus_num)
        i2c->adap.dev.parent = &ndev->pci_dev->dev;
        i2c_set_adapdata(&i2c->adap, i2c);
        ret = i2c_add_adapter(&i2c->adap);
-       if (ret) {
-               dev_err(&ndev->pci_dev->dev,
-                       "%s(): failed to add I2C adapter\n", __func__);
+       if (ret)
                return ret;
-       }
        dev_info(&ndev->pci_dev->dev,
                "%s(): registered I2C bus %d at 0x%x\n",
                __func__,