From a852ec0ef9cf5eaf7b41fa570bc5bc8e25a6a356 Mon Sep 17 00:00:00 2001 From: pjd Date: Thu, 15 Dec 2011 22:01:34 +0000 Subject: Remove redundant setting of the error variable. Found by: Clang Static Analyzer MFC after: 1 week --- sbin/hastd/control.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sbin') diff --git a/sbin/hastd/control.c b/sbin/hastd/control.c index 93bfbb7..2e99366 100644 --- a/sbin/hastd/control.c +++ b/sbin/hastd/control.c @@ -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; } -- cgit v1.1