Skip to contentSkip to conversation

Staging: media: Add blank line after declarations

PATCH New Dilek Uzulmez 1 participant 1 message Feb 27, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: media: Add blank line after declarations

The following patch fixes the checkpatch.pl warning:
drivers/staging/media/tlg2300/pd-video.c WARNING: Missing a blank line after declarations

---
 drivers/staging/media/tlg2300/pd-video.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/staging/media/tlg2300/pd-video.c +9 -0
index 8cd7f02..5afcc90 100644
@@ -494,6 +494,7 @@ int alloc_bulk_urbs_generic(struct urb **urb_array, int num,
 	for (; i < num; i++) {
 		void *mem;
 		struct urb *urb = usb_alloc_urb(0, gfp_flags);
+
 		if (urb == NULL)
 			return i;
 
@@ -557,6 +558,7 @@ static void pd_buf_release(struct videobuf_queue *q, struct videobuf_buffer *vb)
 static void pd_buf_queue(struct videobuf_queue *q, struct videobuf_buffer *vb)
 {
 	struct front_face *front = q->priv_data;
+
 	vb->state = VIDEOBUF_QUEUED;
 	list_add_tail(&vb->queue, &front->active);
 }
@@ -1098,24 +1100,28 @@ static int vidioc_reqbufs(struct file *file, void *fh,
 				struct v4l2_requestbuffers *b)
 {
 	struct front_face *front = file->private_data;
+
 	return videobuf_reqbufs(&front->q, b);
 }
 
 static int vidioc_querybuf(struct file *file, void *fh, struct v4l2_buffer *b)
 {
 	struct front_face *front = file->private_data;
+
 	return videobuf_querybuf(&front->q, b);
 }
 
 static int vidioc_qbuf(struct file *file, void *fh, struct v4l2_buffer *b)
 {
 	struct front_face *front = file->private_data;
+
 	return videobuf_qbuf(&front->q, b);
 }
 
 static int vidioc_dqbuf(struct file *file, void *fh, struct v4l2_buffer *b)
 {
 	struct front_face *front = file->private_data;
+
 	return videobuf_dqbuf(&front->q, b, file->f_flags & O_NONBLOCK);
 }
 
@@ -1432,12 +1438,14 @@ static int pd_video_release(struct file *file)
 static int pd_video_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	struct front_face *front = file->private_data;
+
 	return  videobuf_mmap_mapper(&front->q, vma);
 }
 
 static unsigned int pd_video_poll(struct file *file, poll_table *table)
 {
 	struct front_face *front = file->private_data;
+
 	return videobuf_poll_stream(file, &front->q, table);
 }
 
@@ -1445,6 +1453,7 @@ static ssize_t pd_video_read(struct file *file, char __user *buffer,
 			size_t count, loff_t *ppos)
 {
 	struct front_face *front = file->private_data;
+
 	return videobuf_read_stream(&front->q, buffer, count, ppos,
 				0, file->f_flags & O_NONBLOCK);
 }
Signature · 1 line
1.9.1