From d1bed81ad8a1dde99953e1f880e5794680d53d62 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 2 Sep 2019 04:29:33 +0200 Subject: PVS/V547: Expression is always false ll_get_or_alloc_list() never fails because OOM is an abort condition. --- src/nvim/quickfix.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/nvim') diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 2635f1d38a..80477c6947 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -5291,9 +5291,6 @@ void ex_cbuffer(exarg_T *eap) || eap->cmdidx == CMD_lgetbuffer || eap->cmdidx == CMD_laddbuffer) { qi = ll_get_or_alloc_list(curwin); - if (qi == NULL) { - return; - } wp = curwin; } @@ -5399,9 +5396,6 @@ void ex_cexpr(exarg_T *eap) || eap->cmdidx == CMD_lgetexpr || eap->cmdidx == CMD_laddexpr) { qi = ll_get_or_alloc_list(curwin); - if (qi == NULL) { - return; - } wp = curwin; } -- cgit