]> git.karo-electronics.de Git - linux-beck.git/commit
[media] vpfe_capture: fix compiler warning
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 21 Nov 2016 13:59:20 +0000 (11:59 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 10:13:24 +0000 (08:13 -0200)
commit1827bdc7b141859a1eb9d2d45bb923ea7252774a
tree87e8b2aec48cd9fa50c23fd99a4fb7660c1ad533
parented1f47cc69c3f230d394e001012336877d730ea2
[media] vpfe_capture: fix compiler warning

davinci/vpfe_capture.c: In function 'vpfe_probe':
davinci/vpfe_capture.c:1992:9: warning: 'ret' may be used uninitialized
in this function [-Wmaybe-uninitialized]
   return ret;
          ^~~

This is indeed correct, so if the kmalloc fails set ret to -ENOMEM.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/davinci/vpfe_capture.c