summaryrefslogtreecommitdiffstats
path: root/common/state/backend_format_dtb.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2017-09-25 12:02:35 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-09-26 08:51:30 +0200
commit25e67cbb2fce8690bcde07598ad4998aad475f13 (patch)
tree54022a807486509d258475d8cbe702cdb1dfd78e /common/state/backend_format_dtb.c
parent347ab857903a8e613052a28540abdcf78edb2f1b (diff)
downloadbarebox-25e67cbb2fce8690bcde07598ad4998aad475f13.tar.gz
remove checks for xzalloc() returning NULL
xzalloc() either returns memory or panics, so checking for NULL is useless. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/backend_format_dtb.c')
-rw-r--r--common/state/backend_format_dtb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/state/backend_format_dtb.c b/common/state/backend_format_dtb.c
index 4c9d2ee..48f30db 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;