Remove redundant variable declarations

... to silence compiler warnings about variable shadowing.