gallium/radeon: eliminate fast color clear before sharing
[mesa.git] / src / gallium / drivers / radeonsi / si_pm4.c
index c4ef2e78c50a8bc666ad7ecb71bbca83550dc586..c3032fc45b547594d8a9905bbe5df9529c8bf812 100644 (file)
@@ -115,7 +115,7 @@ void si_pm4_free_state(struct si_context *sctx,
                       struct si_pm4_state *state,
                       unsigned idx)
 {
-       if (state == NULL)
+       if (!state)
                return;
 
        if (idx != ~0 && sctx->emitted.array[idx] == state) {