diff options
author | Colin Ian King <[email protected]> | 2016-07-15 12:59:15 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2016-07-15 13:32:58 -0300 |
commit | eca2d34b9d2ce70165a50510659838e28ca22742 (patch) | |
tree | cd82afca63419c2b941af41f288d87a42deb9233 /tools/perf/util/trace-event-scripting.c | |
parent | 785ef73dba6e9fefd2e5dd24546e0efa8698e5cd (diff) |
[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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions