]> git.baikalelectronics.ru Git - kernel.git/commit
[media] DaVinci-VPBE: Reduce the scope for a variable in vpbe_set_default_output()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 12 Oct 2016 07:54:26 +0000 (04:54 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 14:40:32 +0000 (12:40 -0200)
commit4fca01c0556ac973faa6a63527615558682025e3
tree320864ef6b39002501b9b0792bea2bc31635fc61
parent1647548ab93ccc17b2d746ff33e8b125635a4797
[media] DaVinci-VPBE: Reduce the scope for a variable in vpbe_set_default_output()

* Move the definition for the variable "ret" into an if branch
  so that an extra initialisation can be avoided at the beginning
  by this refactoring.

* Return a success code as a constant at the end.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/davinci/vpbe.c