From: Yousong Zhou Date: Tue, 21 Mar 2017 03:15:12 +0000 (+0800) Subject: file: remove redundant NULL check on return value of uci_realloc() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c4df32b386c7bb29568140d135d7315e76c934b7;p=oweals%2Fuci.git 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 --- 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); }