summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/ves1820.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-07-15 17:59:15 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-15 18:32:58 +0200
commiteca2d34b9d2ce70165a50510659838e28ca22742 (patch)
treecd82afca63419c2b941af41f288d87a42deb9233 /drivers/media/dvb-frontends/ves1820.c
parent[media] airspy: fix error logic during device register (diff)
downloadlinux-eca2d34b9d2ce70165a50510659838e28ca22742.tar.xz
linux-eca2d34b9d2ce70165a50510659838e28ca22742.zip
[media] mb86a20s: apply mask to val after checking for read failure
Appling the mask 0x0f to the immediate return of the call to mb86a20s_readreg will always result in a positive value, meaning that the check of ret < 0 will never work. Instead, check for a -ve return value first, and then mask val with 0x0f. Kudos to Mauro Carvalho Chehab for spotting the mistake in my original fix. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/ves1820.c')
0 files changed, 0 insertions, 0 deletions