]> git.baikalelectronics.ru Git - kernel.git/commit
media: zr364xx: remove redundant assigmnent to idx, clean up code
authorColin Ian King <colin.king@canonical.com>
Fri, 25 Oct 2019 13:46:12 +0000 (15:46 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 10 Nov 2019 16:49:58 +0000 (17:49 +0100)
commit60f7e852abd20c4ae03194e8769f85c06239f01d
tree3fe36e595338e720e0e9ffed95bf681f28c4fa1c
parent5461da28f3659b4e8ddea8e95741289a39affd75
media: zr364xx: remove redundant assigmnent to idx, clean up code

The variable cable_type is being initialized with a value that
is never read and is being re-assigned a little later on. Replace
the redundant initializtion with the assignment that occurs a little
later. Also initialize frm too rather than have a later assignment.

Addresses-Coverity: ("Unused value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/zr364xx/zr364xx.c