summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-12-15 22:01:34 +0000
committerpjd <pjd@FreeBSD.org>2011-12-15 22:01:34 +0000
commita852ec0ef9cf5eaf7b41fa570bc5bc8e25a6a356 (patch)
tree8f245c690feaa4efb3e2002f18ea33d2491bfa98 /sbin
parent5343960cbbeb36f73873e896e35cc63fa1f0a91b (diff)
downloadFreeBSD-src-a852ec0ef9cf5eaf7b41fa570bc5bc8e25a6a356.zip
FreeBSD-src-a852ec0ef9cf5eaf7b41fa570bc5bc8e25a6a356.tar.gz
Remove redundant setting of the error variable.
Found by: Clang Static Analyzer MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r--sbin/hastd/control.c2
1 files changed, 0 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud