media: hdpvr: remove redundant assignment to retval
authorColin Ian King <colin.king@canonical.com>
Sun, 18 Aug 2019 18:36:08 +0000 (15:36 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 26 Aug 2019 13:43:53 +0000 (10:43 -0300)
commiteb0a6fb25c05679d32698c2503ee39bdbbc13663
treee922f2521b186ccce7e9805858d261dd23f63a58
parent7e0bb5828311f811309bed5749528ca04992af2f
media: hdpvr: remove redundant assignment to retval

Variable retval is initialized to a value that is never read
so this assignment is redundant.  Clean up the code by removing
retval completely and just return the error return from the
call to i2c_add_adapter.

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+samsung@kernel.org>
drivers/media/usb/hdpvr/hdpvr-i2c.c