]> git.baikalelectronics.ru Git - kernel.git/commit
[media] gspca_stv06xx: remove redundant check for err < 0
authorColin Ian King <colin.king@canonical.com>
Wed, 11 Jan 2017 16:24:33 +0000 (14:24 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 13:18:33 +0000 (11:18 -0200)
commitcafdf653a7f2af2e63882a0bafb9800c36205871
treec7bfea8302362ebc53f816791a9a6891bd754351
parentec9d92538f4fe6a6bc68d37c4c711c6027e42850
[media] gspca_stv06xx: remove redundant check for err < 0

The comparison of err < 0 is redundant as err has been previously
been assigned to 0 and has not changed.  Remove the redundant check.

Fixes CoverityScan CID#703363 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c