*new* assign_vs_compare: if ((x = <constant>)) {
commitadaffbfb549c3c47d2e5ce090a5af095fa4e74b8
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Jul 2012 08:22:15 +0000 (24 11:22 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Jul 2012 08:22:15 +0000 (24 11:22 +0300)
tree98983ed71756294dca7895d9b1925711844fceed
parent6c152bf87197d87adebaab5fbc7cb458cceea0c1
*new* assign_vs_compare: if ((x = <constant>)) {

This found one bug and one false positive.  The false positive was:

if ((edev = DEVICE_EISA(gendev))) {

For some configs DEVICE_EISA() is just NULL.  I'm not sure how to silence
this warning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_assign_vs_compare.c [new file with mode: 0644]
check_list.h