From 64c5aeaa94d02fecbe169d830960d1dc841dbc6b Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 6 Sep 2014 11:34:28 -0400 Subject: [PATCH] nouveau: buffer can never be null Reported by Coverity Signed-off-by: Ilia Mirkin --- 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 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; -- 2.30.2