eBPF-based security platform
util: drop a field nothing reads and a test that always holds
Daniel Borkmannb28fc36ba281
diff --git a/util/attest.c b/util/attest.cindex 57846070..a242b9d4 100644--- a/util/attest.c+++ b/util/attest.c@@ -484,7 +484,6 @@ struct parse {__u32 inits; /* init records this boot */__u32 inits_epoch; /* for the last reset count */struct init_record init;- int err;};static int on_pcr(void *ctx)diff --git a/util/config_update.c b/util/config_update.cindex 5761a7fe..70a89772 100644--- a/util/config_update.c+++ b/util/config_update.c@@ -589,8 +589,7 @@ static int begin_event(struct config_update *update,return ret;memcpy(record.initial_pcr, kind == CONFIG_EVENT_BOOT ?before : previous->initial_pcr, 32);- if (!ret)- ret = event_follows(previous, &record);+ ret = event_follows(previous, &record);if (!ret)ret = config_measure_event(kind, target->root_hash,event);