From: Julia Lawall Date: Fri, 13 Nov 2015 10:46:00 +0000 (-0200) Subject: [media] media: videobuf2: fix compare_const_fl.cocci warnings X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e88a3f81215e470cd3228a5d746eb7ad9fd1965a;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/v4l2-core/videobuf2-v4l2.c b/drivers/media/v4l2-core/videobuf2-v4l2.c index 502984c724ff..2d1e5b7d85a2 100644 --- a/drivers/media/v4l2-core/videobuf2-v4l2.c +++ b/drivers/media/v4l2-core/videobuf2-v4l2.c @@ -52,7 +52,7 @@ static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer return 0; /* Is memory for copying plane information present? */ - if (NULL == b->m.planes) { + if (b->m.planes == NULL) { dprintk(1, "multi-planar buffer passed but " "planes array not provided\n"); return -EINVAL;