Skip to content

Commit

Permalink
[media] uvc_entity: initialize return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jun 1, 2011
1 parent 8c89ddd commit 76df01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/uvc/uvc_entity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76df01e

Please sign in to comment.