From: Ilia Mirkin Date: Sat, 6 Sep 2014 15:34:28 +0000 (-0400) Subject: nouveau: buffer can never be null X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64c5aeaa94d02fecbe169d830960d1dc841dbc6b;p=mesa.git nouveau: buffer can never be null Reported by Coverity Signed-off-by: Ilia Mirkin --- 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;