Remove unused assignment
Request can't be NULL
Fix clang scanner warnings
Use correct reference for error message