Fix dead code found by LLVM's scan-build utility