summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-02-13 17:31:45 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-02-13 17:31:45 -0500
commit3a9c26fb747e192984f4d89a8d5111261b6c9c3f (patch)
tree54af2cf9ff1bdeaafb2f2a00d812846a970e436e /linux/drivers
parent0173038bafb808d93f88b3f0b043696b04cc2ded (diff)
downloadmediapointer-dvb-s2-3a9c26fb747e192984f4d89a8d5111261b6c9c3f.tar.gz
mediapointer-dvb-s2-3a9c26fb747e192984f4d89a8d5111261b6c9c3f.tar.bz2
cafe_ccic: fix compiler warning
From: Jean Delvare <khali@linux-fr.org> Fix the following warning: drivers/media/video/cafe_ccic.c: In function `cafe_vidioc_reqbufs': drivers/media/video/cafe_ccic.c:1197: warning: 'ret' might be used uninitialized in this function Probably not a real bug, but the warning can be avoided easily. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/cafe_ccic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cafe_ccic.c b/linux/drivers/media/video/cafe_ccic.c
index a8d0cb910..b61a90e78 100644
--- a/linux/drivers/media/video/cafe_ccic.c
+++ b/linux/drivers/media/video/cafe_ccic.c
@@ -1028,7 +1028,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
@@ -1257,8 +1257,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: