missing_break: use fewer states
commita5d654e8e937da4ca25e8621cc55a59187299cad
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 Mar 2014 09:43:54 +0000 (7 12:43 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 Mar 2014 09:43:54 +0000 (7 12:43 +0300)
tree04a38e15618f02be9633b2daa4cdbc24a8e2d1e9
parenta10ac1c796a4dc02ed205699bf76dae0eaccf07b
missing_break: use fewer states

The check_missing_break.c script uses a lot of states because it records
every variable which is used.  Possibly this is a stupid thing.

We can obviously ignore variables which are not even inside a switch
statement.  This is the change in match_symbol().

The other change is that at the end of a switch statement we can free
all the states.

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