diff options
author | Joe Perches <joe@perches.com> | 2014-12-11 00:52:02 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-11 02:41:12 +0100 |
commit | b75ac618df751b927469ddbca63cf151a62f0f9d (patch) | |
tree | fbc657be2fa3993e8639d5e083f4962811b025c5 /scripts/Makefile.fwinst | |
parent | checkpatch: add test for consecutive string fragments (diff) | |
download | linux-b75ac618df751b927469ddbca63cf151a62f0f9d.tar.xz linux-b75ac618df751b927469ddbca63cf151a62f0f9d.zip |
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 <joe@perches.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/Makefile.fwinst')
0 files changed, 0 insertions, 0 deletions