Small code optimization

Remove function argument as a local variable is used.