mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07: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:
parent
fb19aeeb33
commit
d1bed81ad8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user