]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/cafe_ccic.c
V4L/DVB (5366): Pvrusb2: Fix compilation warning for amd64 builds (use %zu instead...
[linux-2.6-omap-h63xx.git] / drivers / media / video / cafe_ccic.c
index 4dae8925667f77cd2cbfb9919321b3d00d87d265..710c11a682964b88f525a0517b9f3a2032f5ad70 100644 (file)
@@ -1022,7 +1022,7 @@ static ssize_t cafe_v4l_read(struct file *filp,
                char __user *buffer, size_t len, loff_t *pos)
 {
        struct cafe_camera *cam = filp->private_data;
-       int ret;
+       int ret = 0;
 
        /*
         * Perhaps we're in speculative read mode and already
@@ -1195,7 +1195,7 @@ static int cafe_vidioc_reqbufs(struct file *filp, void *priv,
                struct v4l2_requestbuffers *req)
 {
        struct cafe_camera *cam = filp->private_data;
-       int ret;
+       int ret = 0;  /* Silence warning */
 
        /*
         * Make sure it's something we can do.  User pointers could be
@@ -1251,8 +1251,6 @@ static int cafe_vidioc_reqbufs(struct file *filp, void *priv,
 
        if (cam->n_sbufs == 0)  /* no luck at all - ret already set */
                kfree(cam->sb_bufs);
-       else
-               ret = 0;
        req->count = cam->n_sbufs;  /* In case of partial success */
 
   out: