projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15a7831
)
[media] DaVinci-VPBE: Delete an unnecessary variable initialisation in vpbe_set_output()
author
Markus Elfring
<
[email protected]
>
Wed, 12 Oct 2016 08:16:23 +0000
(
05:16
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Wed, 16 Nov 2016 14:41:39 +0000
(12:41 -0200)
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 <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/platform/davinci/vpbe.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/davinci/vpbe.c
b/drivers/media/platform/davinci/vpbe.c
index 968c2a67468f2f3b0d094b73218c5e95f9f3f4f4..7dcdb7f4b3237f52af1a2086fff5e1c66a006036 100644
(file)
--- 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;