From c4df32b386c7bb29568140d135d7315e76c934b7 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 21 Mar 2017 11:15:12 +0800 Subject: [PATCH 1/1] file: remove redundant NULL check on return value of uci_realloc() Because the check will be done by uci_realloc itself. Signed-off-by: Yousong Zhou --- file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/file.c b/file.c index 5a8c6cb..494c649 100644 --- a/file.c +++ b/file.c @@ -70,8 +70,6 @@ __private void uci_getln(struct uci_context *ctx, int offset) pctx->bufsz *= 2; pctx->buf = uci_realloc(ctx, pctx->buf, pctx->bufsz); - if (!pctx->buf) - UCI_THROW(ctx, UCI_ERR_MEM); } while (1); } -- 2.11.0