diff options
| author | Daniel Scheller <[email protected]> | 2017-08-12 07:55:59 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-08-20 07:08:31 -0400 |
| commit | adb57f60ace633f1ac78cd4e90b7381a9b5abd12 (patch) | |
| tree | e17f88823e2bd5f6990ad56403ae632ae1a0abb7 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1bdafdf02711c18b54e4d981b96dc0abe9503668 (diff) | |
media: ddbridge: fix impossible condition warning
Smatch and gcc complained:
drivers/media/pci/ddbridge/ddbridge-core.c:3491 bpsnr_show() warn: impossible condition '(snr[0] == 255) => ((-128)-127 == 255)'
drivers/media/pci/ddbridge/ddbridge-core.c: In function ‘bpsnr_show’:
drivers/media/pci/ddbridge/ddbridge-core.c:3491:13: warning: comparison is always false due to limited range of data type [-Wtype-limits]
Fix this by changing the type of snr to unsigned char.
Cc: Ralph Metzler <[email protected]>
Signed-off-by: Daniel Scheller <[email protected]>
Tested-by: Richard Scobie <[email protected]>
Tested-by: Jasmin Jessich <[email protected]>
Tested-by: Dietmar Spingler <[email protected]>
Tested-by: Manfred Knick <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions