From: Joe Perches Date: Wed, 10 Dec 2014 23:52:02 +0000 (-0800) Subject: checkpatch: add --strict "pointer comparison to NULL" test X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~71 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b75ac618df751b927469ddbca63cf151a62f0f9d;p=pandora-kernel.git checkpatch: add --strict "pointer comparison to NULL" test It seems there are more and more uses of "if (!ptr)" in preference to "if (ptr == NULL)" so add a --strict test to emit a message when using the latter form. This also finds (ptr != NULL). Fix it too if desired. Signed-off-by: Joe Perches Cc: Dan Carpenter Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed