From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Mon, 09 Jan 2017 10:30:20 +0000 Subject: Re: [PATCH 4/8] [media] videobuf-dma-sg: Adjust 24 checks for null values Message-Id: <20170109103020.GB4239@mwanda> List-Id: References: <9268b60d-08ba-c64e-1848-f84679d64f80@users.sourceforge.net> <7b963ec7-1ec7-5e44-e9ff-9385bc41aa48@users.sourceforge.net> In-Reply-To: <7b963ec7-1ec7-5e44-e9ff-9385bc41aa48@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring Cc: linux-media@vger.kernel.org, Dave Hansen , Jan Kara , Javier Martinez Canillas , "Kirill A. Shutemov" , Lorenzo Stoakes , Mauro Carvalho Chehab , Michal Hocko , Sakari Ailus , LKML , kernel-janitors@vger.kernel.org On Mon, Dec 26, 2016 at 09:48:19PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 26 Dec 2016 20:30:19 +0100 > > Convert comparisons with the preprocessor symbol "NULL" or the value "0" > to condition checks without it. Generally lengths are numbers and not booleans so "len = 0" is ok. Checkpatch doesn't complain about that. regards, dan carpenter