Remove redundant setting of the error variable.

Found by:	Clang Static Analyzer
MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2011-12-15 22:01:34 +00:00
parent 04d8001793
commit b720f4aad0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228542

View File

@ -312,7 +312,6 @@ control_handle(struct hastd_config *cfg)
cmd = nv_get_uint8(nvin, "cmd");
if (cmd == 0) {
pjdlog_error("Control header is missing 'cmd' field.");
error = EHAST_INVALID;
goto close;
}
@ -320,7 +319,6 @@ control_handle(struct hastd_config *cfg)
nvout = nv_alloc();
if (nvout == NULL) {
pjdlog_error("Unable to allocate header for control response.");
error = EHAST_NOMEMORY;
goto close;
}