Eliminate a copy and a now-unused variable

Signed-off-by: John Else <john.else@citrix.com>