Fixing unused variable found by coverity CID 26592