@@ -1187,7 +1187,6 @@ static int vpfe_release(struct file *file)
{
struct vpfe_device *vpfe = video_drvdata(file);
bool fh_singular;
- int ret;
mutex_lock(&vpfe->lock);
@@ -1195,7 +1194,7 @@ static int vpfe_release(struct file *file)
fh_singular = v4l2_fh_is_singular_file(file);
/* the release helper will cleanup any on-going streaming */
- ret = _vb2_fop_release(file, NULL);
+ _vb2_fop_release(file, NULL);
/*
* If this was the last open file.
@@ -1206,7 +1205,7 @@ static int vpfe_release(struct file *file)
mutex_unlock(&vpfe->lock);
- return ret;
+ return 0;
}
/*
@@ -538,7 +538,6 @@ static int fimc_capture_release(struct file *file)
struct fimc_dev *fimc = video_drvdata(file);
struct fimc_vid_cap *vc = &fimc->vid_cap;
bool close = v4l2_fh_is_singular_file(file);
- int ret;
dbg("pid: %d, state: 0x%lx", task_pid_nr(current), fimc->state);
@@ -549,7 +548,7 @@ static int fimc_capture_release(struct file *file)
vc->streaming = false;
}
- ret = _vb2_fop_release(file, NULL);
+ _vb2_fop_release(file, NULL);
if (close) {
clear_bit(ST_CAPT_BUSY, &fimc->state);
@@ -564,7 +563,7 @@ static int fimc_capture_release(struct file *file)
pm_runtime_put_sync(&fimc->pdev->dev);
mutex_unlock(&fimc->lock);
- return ret;
+ return 0;
}
static const struct v4l2_file_operations fimc_capture_fops = {