The failure variable is initialized with 0 and used as a return value
without ever being modified. Remove it and return 0 directly.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
        struct media_entity *entity;
        struct media_pad *pad;
        struct v4l2_subdev *subdev;
-       int failure = 0;
 
        entity = &pipe->output->video.entity;
        while (1) {
                v4l2_subdev_call(subdev, video, s_stream, 0);
        }
 
-       return failure;
+       return 0;
 }
 
 /*