[Mesa-dev] [PATCH 5/8] nouveau: buffer can never be null
Ilia Mirkin
imirkin at alum.mit.edu
Sat Sep 6 09:36:17 PDT 2014
Reported by Coverity
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nouveau_video.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/gallium/drivers/nouveau/nouveau_video.c b/src/gallium/drivers/nouveau/nouveau_video.c
index bd04625..d6330fa 100644
--- a/src/gallium/drivers/nouveau/nouveau_video.c
+++ b/src/gallium/drivers/nouveau/nouveau_video.c
@@ -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;
--
1.8.5.5
More information about the mesa-dev
mailing list