From: Brian Date: Thu, 2 Aug 2007 14:44:34 +0000 (-0600) Subject: remove unnecessary null check (bug 11814) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2556b7487cb383e285f6b21c5513edd8c5d37e6;p=mesa.git remove unnecessary null check (bug 11814) --- diff --git a/src/mesa/drivers/dri/r300/r300_texmem.c b/src/mesa/drivers/dri/r300/r300_texmem.c index 38f0da8b7c0..723601ac4a6 100644 --- a/src/mesa/drivers/dri/r300/r300_texmem.c +++ b/src/mesa/drivers/dri/r300/r300_texmem.c @@ -505,7 +505,7 @@ int r300UploadTexImages(r300ContextPtr rmesa, r300TexObjPtr t, GLuint face) t->base.lastLevel); } - if (!t || t->base.totalSize == 0) + if (t->base.totalSize == 0) return 0; if (RADEON_DEBUG & DEBUG_SYNC) {