aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2023-07-27 19:40:07 +0200
committerMauro Carvalho Chehab <[email protected]>2023-08-10 07:58:32 +0200
commitf33cb49081da0ec5af0888f8ecbd566bd326eed1 (patch)
tree67b3f4881bdc97a8395b22dbc9f01f3aee67228f /tools/perf/scripts/python
parent2545a2c02ba1da9cfb9ec218623c71b00eb4a555 (diff)
media: go7007: Remove redundant if statement
The if statement that compares msgs[i].len != 3 is always false because it is in a code block where msg[i].len is equal to 3. The check is redundant and can be removed. As detected by cppcheck static analysis: drivers/media/usb/go7007/go7007-i2c.c:168:20: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] Link: https://lore.kernel.org/linux-media/[email protected] Fixes: 866b8695d67e ("Staging: add the go7007 video driver") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions