From e0828e885b298537554d8b751fb52e1a69a04c9d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 11 Nov 2015 20:45:53 +0100 Subject: [PATCH] cleanup: drop unneded check for mem Revert missed to drop this extra check. --- lib/datastruct/str_list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/datastruct/str_list.c b/lib/datastruct/str_list.c index cf7457b80..9dd057656 100644 --- a/lib/datastruct/str_list.c +++ b/lib/datastruct/str_list.c @@ -239,7 +239,7 @@ struct dm_list *str_to_str_list(struct dm_pool *mem, const char *str, return list; bad: - if (mem) - dm_pool_free(mem, list); + dm_pool_free(mem, list); + return NULL; }