PVS/V547: Expression is always false

ll_get_or_alloc_list() never fails because OOM is an abort condition.
This commit is contained in:
Justin M. Keyes 2019-09-02 04:29:33 +02:00
parent fb19aeeb33
commit d1bed81ad8

View File

@ -5291,9 +5291,6 @@ void ex_cbuffer(exarg_T *eap)
|| eap->cmdidx == CMD_lgetbuffer || eap->cmdidx == CMD_lgetbuffer
|| eap->cmdidx == CMD_laddbuffer) { || eap->cmdidx == CMD_laddbuffer) {
qi = ll_get_or_alloc_list(curwin); qi = ll_get_or_alloc_list(curwin);
if (qi == NULL) {
return;
}
wp = curwin; wp = curwin;
} }
@ -5399,9 +5396,6 @@ void ex_cexpr(exarg_T *eap)
|| eap->cmdidx == CMD_lgetexpr || eap->cmdidx == CMD_lgetexpr
|| eap->cmdidx == CMD_laddexpr) { || eap->cmdidx == CMD_laddexpr) {
qi = ll_get_or_alloc_list(curwin); qi = ll_get_or_alloc_list(curwin);
if (qi == NULL) {
return;
}
wp = curwin; wp = curwin;
} }