]> git.baikalelectronics.ru Git - kernel.git/commit
[media] c8sectpfe: fix ininitialized error return on firmware load failure
authorColin Ian King <colin.king@canonical.com>
Tue, 15 Sep 2015 11:42:27 +0000 (08:42 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 22 Oct 2015 17:48:23 +0000 (15:48 -0200)
commit223370b8035d6326bb791ddd49e0b2796777864c
treec8ced1569f024bccd8e0ae4f2c58ea8bcfc35797
parent4e1d958fbdf0a6755744750fdeadba7f425f6ae3
[media] c8sectpfe: fix ininitialized error return on firmware load failure

static analysis with cppcheck detected the following error:

[drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:1210]:
  (error) Uninitialized variable: ret

ret is never initialised, so garbage is being returned. Instead
return the error return from the call of request_firmware_nowait

Signed-off-by: Colin Ian King <colin.king@canonical.com>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c