scan-build #14: remove dead assignments

- variables that are set but never read again