[media] uvc_entity: initialize return value
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Jun 2011 17:44:41 +0000 (14:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Jun 2011 17:45:52 +0000 (14:45 -0300)
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: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_entity.c

index ede7852bb1df15b63ab575d968a6fe6862c1c875..c3ab0c813be249d4957fa93e83cfac0df567b703 100644 (file)
@@ -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;