diff options
author | Ilia Mirkin <[email protected]> | 2014-09-06 11:34:28 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-09-08 20:06:11 -0400 |
commit | 64c5aeaa94d02fecbe169d830960d1dc841dbc6b (patch) | |
tree | 434cea0046a2a42cebd29355beed2ee51c1d94a1 /src/gallium/drivers/nouveau | |
parent | 1792d609007798adbe621048e81a883edb31a199 (diff) |
nouveau: buffer can never be null
Reported by Coverity
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_video.c | 2 |
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; |