diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-06-13 12:54:20 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-08-13 11:48:32 -0300 |
commit | 5cf7e71f7a63c0feb5e306a33942b3af94ef413b (patch) | |
tree | a629c03ca249ebb93f57bbd6af10c98a0e24cd79 /drivers | |
parent | 0b25167d1cdd42f56c18f8d666a412bbefc819ac (diff) | |
download | linux-5cf7e71f7a63c0feb5e306a33942b3af94ef413b.tar.bz2 |
media: zd1301_demod: don't check retval after our own assignemt
No need to check a retval after we assigned a constant to it.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb-frontends/zd1301_demod.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/zd1301_demod.c b/drivers/media/dvb-frontends/zd1301_demod.c index 96adbba7a82b..bbabe6a2d4f4 100644 --- a/drivers/media/dvb-frontends/zd1301_demod.c +++ b/drivers/media/dvb-frontends/zd1301_demod.c @@ -421,8 +421,7 @@ static int zd1301_demod_i2c_master_xfer(struct i2c_adapter *adapter, } else { dev_dbg(&pdev->dev, "unknown msg[0].len=%u\n", msg[0].len); ret = -EOPNOTSUPP; - if (ret) - goto err; + goto err; } return num; |