Because the check will be done by uci_realloc itself.

Signed-off-by: Yousong Zhou <yszhou4t...@gmail.com>
---
 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.6.4


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to