mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
nouveau: buffer can never be null
Reported by Coverity Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
1792d60900
commit
64c5aeaa94
1 changed files with 0 additions and 2 deletions
|
|
@ -381,8 +381,6 @@ nouveau_decoder_surface_index(struct nouveau_decoder *dec,
|
|||
|
||||
unsigned i;
|
||||
|
||||
if (!buf)
|
||||
return 8;
|
||||
for (i = 0; i < dec->num_surfaces; ++i) {
|
||||
if (dec->surfaces[i] == buf)
|
||||
return i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue