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)
commit1dea68495da582da459fcfca60428457acae8063
tree3fe36e595338e720e0e9ffed95bf681f28c4fa1c
parent4edead77fa16ac4ec880ebceed83da2415401d18
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