db: use saved return estate instead of searching the db
commit65e27db415af9a40d812fad3652ab1435aa76d8d
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Jan 2015 14:15:01 +0000 (19 17:15 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Jan 2015 14:15:01 +0000 (19 17:15 +0300)
tree69fad04f3e52572ab92492ca75b88317ee11acc6
parentd4a557d21805e473e6939b276744dc0bd5ba22e9
db: use saved return estate instead of searching the db

These days we save the returned value in "return 0xfsomething" so in
db_return_vals() we can that instead of searching the database again.

Hopefully this is faster.  Also this function doesn't handling function
pointer calls correctly so using the other value fixes a bug.

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