buf_size: move get_stored_size() out of get_array_size()
commit35037f12df01e2583c7ae02fa9508a7a0925a63c
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Jun 2012 16:49:44 +0000 (12 19:49 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Jun 2012 16:49:44 +0000 (12 19:49 +0300)
treea454d16e8cb6b1c6198d116421252f8e41ab5f1c
parent7633ac0d3f1a6120a19ddac8c85418795e9d7445
buf_size: move get_stored_size() out of get_array_size()

More cleanup.  The stuff in get_stored_size() means we used set_state()
to record the size.  Maybe it was allocated with kmalloc() or something
like that so we know the array size from there.

Also I moved the strip_expr() forward in the get_array_size() function.
That might be a bug fix.

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