summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-09-06 11:34:28 -0400
committerIlia Mirkin <[email protected]>2014-09-08 20:06:11 -0400
commit64c5aeaa94d02fecbe169d830960d1dc841dbc6b (patch)
tree434cea0046a2a42cebd29355beed2ee51c1d94a1 /src/gallium/drivers
parent1792d609007798adbe621048e81a883edb31a199 (diff)
nouveau: buffer can never be null
Reported by Coverity Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_video.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_video.c b/src/gallium/drivers/nouveau/nouveau_video.c
index bd0462542f3..d6330fa63a8 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;