Fix some useless code detected by scan-build (LLVM/Clang)
More useless code removal as detected by scan-build (LLVM/Clang)
using scan-build ./configure && scan-build make