Commit 76df01ea authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] uvc_entity: initialize return value

drivers/media/video/uvc/uvc_entity.c: In function ‘uvc_mc_register_entities’:
drivers/media/video/uvc/uvc_entity.c:33: warning: ‘ret’ may be used uninitialized in this function
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 8c89ddd5
......@@ -30,7 +30,7 @@ static int uvc_mc_register_entity(struct uvc_video_chain *chain,
struct uvc_entity *remote;
unsigned int i;
u8 remote_pad;
int ret;
int ret = 0;
for (i = 0; i < entity->num_pads; ++i) {
struct media_entity *source;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment