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

2015-11-15 Thread Sakari Ailus
On Fri, Nov 13, 2015 at 11:46:00AM +0100, Julia Lawall wrote:
>  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 

Acked-by: Sakari Ailus 

-- 
Sakari Ailus
e-mail: sakari.ai...@iki.fi XMPP: sai...@retiisi.org.uk
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

2015-11-13 Thread Julia Lawall
 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 
---

!b->m.planes could also be possible.  Up to you.

 videobuf2-v4l2.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 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
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;
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html