From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933545AbbKMKqI (ORCPT ); Fri, 13 Nov 2015 05:46:08 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:24974 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932810AbbKMKqD (ORCPT ); Fri, 13 Nov 2015 05:46:03 -0500 X-IronPort-AV: E=Sophos;i="5.20,286,1444687200"; d="scan'208";a="187359893" Date: Fri, 13 Nov 2015 11:46:00 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Junghak Sung cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, Geunyoung Kim , Hans Verkuil , Pawel Osciak , Marek Szyprowski , Kyungmin Park , linux-kernel@vger.kernel.org Subject: [PATCH] [media] media: videobuf2: fix compare_const_fl.cocci warnings Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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;