equiv: if a variable is only equivalent to itself set ->equiv to NULL
commitc412c447e90200db360bc721b2cc8e2395434172
authorDan Carpenter <error27@gmail.com>
Wed, 31 Mar 2010 10:06:33 +0000 (31 13:06 +0300)
committerDan Carpenter <error27@gmail.com>
Wed, 31 Mar 2010 10:06:33 +0000 (31 13:06 +0300)
treeffa08afd83107ee003e275209bc68c282100f451
parentd078d63b5dcb452f07842735c9d8ca1160f9c2fc
equiv: if a variable is only equivalent to itself set ->equiv to NULL

On the one hand, this change make sense.

On the other hand, there was a bug parsing some kernel code where the
equiv list did not contain the variable itself but just contained another
variable two times.  How did that happen?  add_tracker_list() is supposed
to prevent duplicates.

I suspect that this patch just papers over that bug.  :/  So probably we'll
see it again some day.

Signed-off-by: Dan Carpenter <error27@gmail.com>
smatch_extra.c