db: don't call call_info call backs unless it is an --info function
commit89019d49ae4bcbe16da1a4092610fe6feb10378c
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 2 Nov 2020 18:46:51 +0000 (2 21:46 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 2 Nov 2020 18:46:51 +0000 (2 21:46 +0300)
tree3fcfd176a9750e97b9b3fbff697273f737b49707
parent827659311afefcf85fbadc6751ebe3beb462afc2
db: don't call call_info call backs unless it is an --info function

Not calling these is a tiny theoretical speed up.

This is a new callback.  We could probably do the same thing for the
struct member callbacks.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_db.c