delete check_null_deref.c and clean up validation/
check_deref.c and check_check_deref.c basically reimpliment
check_null_deref.c
One thing that isn't they don't handle is cross function dereferences. But
those results were generally bogus so it's no loss. I plan to add support
for this again when Smatch gets proper cross function analysis.
The other thing that I noticed from looking through validation/sm_select.c
is that in check_null_deref.c if you dereference something with a state of
merged &ok and &undefined then it would complain. check_check_deref.c
doesn't do this.
Anyway, it feels really good to delete check_null_deref.c.
Signed-off-by: Dan Carpenter <error27@gmail.com>