mirror of https://gitee.com/openkylin/linux.git
staging: tm6000: cleaned up code in tm6000-video.c according to coding style
Fixed all errors reported by the checker in tm6000-video.c mostly relating to whitespace. Signed-off-by: Curtis McEnroe <programble@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2d32f74622
commit
ed7c221c9a
|
@ -777,7 +777,8 @@ buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
|
|||
}
|
||||
|
||||
if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
|
||||
if (0 != (rc = videobuf_iolock(vq, &buf->vb, NULL)))
|
||||
rc = videobuf_iolock(vq, &buf->vb, NULL);
|
||||
if (rc != 0)
|
||||
goto fail;
|
||||
urb_init = 1;
|
||||
}
|
||||
|
@ -1048,7 +1049,7 @@ static int vidioc_streamon(struct file *file, void *priv, enum v4l2_buf_type i)
|
|||
|
||||
if (!res_get(dev, fh, false))
|
||||
return -EBUSY;
|
||||
return (videobuf_streamon(&fh->vb_vidq));
|
||||
return videobuf_streamon(&fh->vb_vidq);
|
||||
}
|
||||
|
||||
static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
|
||||
|
@ -1064,7 +1065,7 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
|
|||
videobuf_streamoff(&fh->vb_vidq);
|
||||
res_free(dev, fh);
|
||||
|
||||
return (0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *norm)
|
||||
|
|
Loading…
Reference in New Issue