[ARM] Remove dead code identified by the Clang static analyzer.