mirror of
https://github.com/neovim/neovim.git
synced 2026-05-02 12:04:58 +00:00
PVS/V547: Expression is always false
ll_get_or_alloc_list() never fails because OOM is an abort condition.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user