mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
[media] saa7146: fix compiler warning
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
eb70ac1b1e
commit
7b4668efc4
@ -1356,18 +1356,14 @@ static void video_close(struct saa7146_dev *dev, struct file *file)
|
|||||||
struct saa7146_fh *fh = file->private_data;
|
struct saa7146_fh *fh = file->private_data;
|
||||||
struct saa7146_vv *vv = dev->vv_data;
|
struct saa7146_vv *vv = dev->vv_data;
|
||||||
struct videobuf_queue *q = &fh->video_q;
|
struct videobuf_queue *q = &fh->video_q;
|
||||||
int err;
|
|
||||||
|
|
||||||
if (IS_CAPTURE_ACTIVE(fh) != 0) {
|
if (IS_CAPTURE_ACTIVE(fh) != 0)
|
||||||
err = video_end(fh, file);
|
video_end(fh, file);
|
||||||
} else if (IS_OVERLAY_ACTIVE(fh) != 0) {
|
else if (IS_OVERLAY_ACTIVE(fh) != 0)
|
||||||
err = saa7146_stop_preview(fh);
|
saa7146_stop_preview(fh);
|
||||||
}
|
|
||||||
|
|
||||||
videobuf_stop(q);
|
videobuf_stop(q);
|
||||||
|
|
||||||
/* hmm, why is this function declared void? */
|
/* hmm, why is this function declared void? */
|
||||||
/* return err */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user