diff options
Diffstat (limited to 'common/state/backend_format_raw.c')
-rw-r--r-- | common/state/backend_format_raw.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/common/state/backend_format_raw.c b/common/state/backend_format_raw.c index 2ba97e08a0..4369f76e37 100644 --- a/common/state/backend_format_raw.c +++ b/common/state/backend_format_raw.c @@ -222,8 +222,6 @@ static int backend_format_raw_pack(struct state_backend_format *format, size_full = size_data + sizeof(*header) + backend_raw->digest_length; buf = xzalloc(size_full); - if (!buf) - return -ENOMEM; header = buf; data = buf + sizeof(*header); @@ -308,8 +306,6 @@ int backend_format_raw_create(struct state_backend_format **format, int ret; raw = xzalloc(sizeof(*raw)); - if (!raw) - return -ENOMEM; raw->dev = dev; ret = backend_format_raw_init_digest(raw, node, secret_name); |