From 25e67cbb2fce8690bcde07598ad4998aad475f13 Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Mon, 25 Sep 2017 12:02:35 +0200 Subject: remove checks for xzalloc() returning NULL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xzalloc() either returns memory or panics, so checking for NULL is useless. Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer --- common/state/backend_format_dtb.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'common/state/backend_format_dtb.c') diff --git a/common/state/backend_format_dtb.c b/common/state/backend_format_dtb.c index 4c9d2eefc7..48f30db1f5 100644 --- a/common/state/backend_format_dtb.c +++ b/common/state/backend_format_dtb.c @@ -136,8 +136,6 @@ int backend_format_dtb_create(struct state_backend_format **format, struct state_backend_format_dtb *dtb; dtb = xzalloc(sizeof(*dtb)); - if (!dtb) - return -ENOMEM; dtb->dev = dev; dtb->format.pack = state_backend_format_dtb_pack; -- cgit v1.2.3