Remove redundant local variable