[media] media: videobuf2: fix compare_const_fl.cocci warnings
authorJulia Lawall <[email protected]>
Fri, 13 Nov 2015 10:46:00 +0000 (08:46 -0200)
committerMauro Carvalho Chehab <[email protected]>
Tue, 17 Nov 2015 16:48:48 +0000 (14:48 -0200)
Move constants to the right of binary operators.

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

CC: Junghak Sung <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/v4l2-core/videobuf2-v4l2.c

index 502984c724ff5efd14ef10250dd5d8e653468111..2d1e5b7d85a27e776fb1bb5bf911765b0ed441e8 100644 (file)
@@ -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;