diff mbox

[1/2,media] v4l2-mem2mem: add v4l2_m2m_create_bufs helper

Message ID 021601ce5c67$f5920f20$e0b62d60$%debski@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kamil Debski May 29, 2013, 12:28 p.m. UTC
Hi,

Thanks for the patch. May I ask you to use use checkpath next time
and keep whitespaces tidy? This time I fixed it (spaces changed to a tab).

Checkpatch:
------------------------------
ERROR: code indent should use tabs where possible
#41: FILE: drivers/media/v4l2-core/v4l2-mem2mem.c:384:
+        return vb2_create_bufs(vq, create);$

WARNING: please, no spaces at the start of a line
#41: FILE: drivers/media/v4l2-core/v4l2-mem2mem.c:384:
+        return vb2_create_bufs(vq, create);$

total: 1 errors, 1 warnings, 28 lines checked

Fix:
------------------------------


Best wishes,

Comments

Philipp Zabel May 29, 2013, 12:50 p.m. UTC | #1
Am Mittwoch, den 29.05.2013, 14:28 +0200 schrieb Kamil Debski:
> Hi,
> 
> Thanks for the patch. May I ask you to use use checkpath next time
> and keep whitespaces tidy? This time I fixed it (spaces changed to a tab).

Yes, thanks

regards
Philipp


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/media/v4l2-core/v4l2-mem2mem.c
b/drivers/media/v4l2-core/v4l2-mem2mem.c
index 674e5a0..a756170 100644
--- a/drivers/media/v4l2-core/v4l2-mem2mem.c
+++ b/drivers/media/v4l2-core/v4l2-mem2mem.c
@@ -381,7 +381,7 @@  int v4l2_m2m_create_bufs(struct file *file, struct
v4l2_m2m_ctx *m2m_ctx,
        struct vb2_queue *vq;
 
        vq = v4l2_m2m_get_vq(m2m_ctx, create->format.type);
-        return vb2_create_bufs(vq, create);
+       return vb2_create_bufs(vq, create);
 }
 EXPORT_SYMBOL_GPL(v4l2_m2m_create_bufs);