Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1458628

[PATCH 1/4] media: pci: netup_unidvb: don't print error when adding adapter fails

From Wolfram Sang <wsa-dev@sang-engineering.com>
Newsgroups linux.kernel
Subject [PATCH 1/4] media: pci: netup_unidvb: don't print error when adding adapter fails
Date 2016-08-09 13:40 +0200
Message-ID <s4dy2-6VH-39@gated-at.bofh.it> (permalink)
References <s4dy1-6VH-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The core will do this for us now.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
---
 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c b/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c
index c09c52bc6eabef..b49e4f9788e869 100644
--- a/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c
+++ b/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c
@@ -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__,
-- 
2.8.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/4] media: pci: netup_unidvb: don't print error when adding adapter fails Wolfram Sang <wsa-dev@sang-engineering.com> - 2016-08-09 13:40 +0200
  Re: [PATCH 1/4] media: pci: netup_unidvb: don't print error when  adding adapter fails Wolfram Sang <wsa@the-dreams.de> - 2016-08-09 17:00 +0200
    Re: [PATCH 1/4] media: pci: netup_unidvb: don't print error when  adding adapter fails Abylay Ospan <aospan@netup.ru> - 2016-08-10 20:20 +0200
      Re: [PATCH 1/4] media: pci: netup_unidvb: don't print error when  adding adapter fails Abylay Ospan <aospan@netup.ru> - 2016-08-10 20:50 +0200
      Re: [PATCH 1/4] media: pci: netup_unidvb: don't print error when  adding adapter fails Wolfram Sang <wsa@the-dreams.de> - 2016-08-10 23:30 +0200

csiph-web