nvc0: add bindless image support for kepler
[mesa.git] / src / gallium / auxiliary / translate / translate_cache.c
index 2bed02a454bb27317640de208675680da4c273b8..8aad7cdfb2b2c987445d4b47ee171bb5188f53b7 100644 (file)
@@ -40,7 +40,7 @@ struct translate_cache {
 struct translate_cache * translate_cache_create( void )
 {
    struct translate_cache *cache = MALLOC_STRUCT(translate_cache);
-   if (cache == NULL) {
+   if (!cache) {
       return NULL;
    }