diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-12 08:21:43 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-17 12:12:57 -0200 |
commit | 43ea43b9d8b27b7acd443ec59319faa3cdb8a616 (patch) | |
tree | cd4081193ac536fd5e2830caf2593c88660e5dfd /drivers/staging | |
parent | aea983801c6b5e4e9af333a32220d580a77f6783 (diff) | |
download | op-kernel-dev-43ea43b9d8b27b7acd443ec59319faa3cdb8a616.zip op-kernel-dev-43ea43b9d8b27b7acd443ec59319faa3cdb8a616.tar.gz |
[media] radio-bcm2048: don't ignore errors
Remove this warning:
drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_set_rds_no_lock':
drivers/staging/media/bcm2048/radio-bcm2048.c:467:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
int err;
^~~
By returning the error code.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/bcm2048/radio-bcm2048.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c index ea15cc6..4d9bd02 100644 --- a/drivers/staging/media/bcm2048/radio-bcm2048.c +++ b/drivers/staging/media/bcm2048/radio-bcm2048.c @@ -482,6 +482,8 @@ static int bcm2048_set_rds_no_lock(struct bcm2048_device *bdev, u8 rds_on) flags); memset(&bdev->rds_info, 0, sizeof(bdev->rds_info)); } + if (err) + return err; return bcm2048_send_command(bdev, BCM2048_I2C_FM_RDS_SYSTEM, bdev->cache_fm_rds_system); |