Commit e88a3f81 authored by Julia Lawall's avatar Julia Lawall Committed by Mauro Carvalho Chehab

[media] media: videobuf2: fix compare_const_fl.cocci warnings

Move constants to the right of binary operators.

Generated by: scripts/coccinelle/misc/compare_const_fl.cocci

CC: Junghak Sung <jh1009.sung@samsung.com>
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 5d273c75
...@@ -52,7 +52,7 @@ static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer ...@@ -52,7 +52,7 @@ static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer
return 0; return 0;
/* Is memory for copying plane information present? */ /* Is memory for copying plane information present? */
if (NULL == b->m.planes) { if (b->m.planes == NULL) {
dprintk(1, "multi-planar buffer passed but " dprintk(1, "multi-planar buffer passed but "
"planes array not provided\n"); "planes array not provided\n");
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment