diff options
author | 2018-03-23 07:13:06 -0400 | |
---|---|---|
committer | 2018-03-23 07:14:47 -0400 | |
commit | 9863bc49abade85cad2ef6c1f535f61c2c24f163 (patch) | |
tree | 680f99a92b910c0596e9eb92f33c1c796676ce69 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | media: ir-kbd-i2c: improve error handling code (diff) | |
download | linux-rng-9863bc49abade85cad2ef6c1f535f61c2c24f163.tar.xz linux-rng-9863bc49abade85cad2ef6c1f535f61c2c24f163.zip |
media: ir-kbd-i2c: change the if logic to avoid a warning
While the code is correct, it produces this warning:
drivers/media/i2c/ir-kbd-i2c.c:593 zilog_ir_format() error: buffer overflow 'code_block->codes' 61 <= 173
As static analyzers may be tricked by arithmetic expressions on
comparisions. So, change the order, in order to shut up this
false-positive warning.
That also makes easier for humans to understand that it won't
be trying to go past buffer size.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions