mirror-linux/drivers/media/usb/go7007
Colin Ian King f33cb49081 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/20230727174007.635572-1-colin.i.king@gmail.com

Fixes: 866b8695d6 ("Staging: add the go7007 video driver")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-08-10 07:58:32 +02:00
..
Kconfig
Makefile
go7007-driver.c media: replace setting of bytesused with vb2_set_plane_payload 2021-12-07 11:29:56 +01:00
go7007-fw.c
go7007-i2c.c media: go7007: Remove redundant if statement 2023-08-10 07:58:32 +02:00
go7007-loader.c
go7007-priv.h
go7007-usb.c media: go7007: fix memory leak in go7007_usb_probe 2021-07-22 14:01:54 +02:00
go7007-v4l2.c media: go7007: don't modify q->streaming 2023-02-06 09:01:05 +01:00
s2250-board.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
snd-go7007.c media: go7007: Constify static struct snd_device_ops 2022-02-22 09:41:11 +01:00