Remove redundant variable

Removes redundant `max` variable declaration.