scan-build #4: remove dead assignments

- variables that are set but never read again