summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-10-12 05:16:23 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-16 12:41:39 -0200
commit630bf79a455bbb5fd13e7721280cd149860bcd56 (patch)
tree82d479febb254233c2d99f72a4cc460e17d4aa18
parent15a78313b7fd43763aeba584c385f1fb17a1bdb5 (diff)
downloadblackbird-obmc-linux-630bf79a455bbb5fd13e7721280cd149860bcd56.tar.gz
blackbird-obmc-linux-630bf79a455bbb5fd13e7721280cd149860bcd56.zip
[media] DaVinci-VPBE: Delete an unnecessary variable initialisation in vpbe_set_output()
The local variable "ret" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. 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>
-rw-r--r--drivers/media/platform/davinci/vpbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c
index 968c2a67468f..7dcdb7f4b323 100644
--- a/drivers/media/platform/davinci/vpbe.c
+++ b/drivers/media/platform/davinci/vpbe.c
@@ -230,7 +230,7 @@ static int vpbe_set_output(struct vpbe_device *vpbe_dev, int index)
u32 if_params;
int enc_out_index;
int sd_index;
- int ret = 0;
+ int ret;
if (index >= cfg->num_outputs)
return -EINVAL;
OpenPOWER on IntegriCloud