summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/m88ds3103.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-06-02 13:20:00 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-09 23:20:42 +0300
commit4347df6a7f7d6d0641523e595df93ddb63990bd1 (patch)
treef6d5d414af69625042a335e8df4be559fb75d25c /drivers/media/dvb-frontends/m88ds3103.c
parentec8f3386a7ef6af7f185aba486402e82cd84b0ad (diff)
downloadlinux-4347df6a7f7d6d0641523e595df93ddb63990bd1.tar.xz
[media] m88ds3103: a couple missing error codes
We need to set some error codes here. Fixes: f01919e8f54f ('[media] m88ds3103: add I2C client binding') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/m88ds3103.c')
-rw-r--r--drivers/media/dvb-frontends/m88ds3103.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/m88ds3103.c b/drivers/media/dvb-frontends/m88ds3103.c
index 01b9dedff3d1..7b21f1ad4542 100644
--- a/drivers/media/dvb-frontends/m88ds3103.c
+++ b/drivers/media/dvb-frontends/m88ds3103.c
@@ -1563,6 +1563,7 @@ static int m88ds3103_probe(struct i2c_client *client,
u8tmp = 0x10;
break;
default:
+ ret = -EINVAL;
goto err_kfree;
}
@@ -1590,8 +1591,10 @@ static int m88ds3103_probe(struct i2c_client *client,
dev->i2c_adapter = i2c_add_mux_adapter(client->adapter, &client->dev,
dev, 0, 0, 0, m88ds3103_select,
m88ds3103_deselect);
- if (dev->i2c_adapter == NULL)
+ if (dev->i2c_adapter == NULL) {
+ ret = -ENOMEM;
goto err_kfree;
+ }
/* create dvb_frontend */
memcpy(&dev->fe.ops, &m88ds3103_ops, sizeof(struct dvb_frontend_ops));