summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/postprocess/pp_run.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/postprocess/pp_run.c')
-rw-r--r--src/gallium/auxiliary/postprocess/pp_run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_run.c b/src/gallium/auxiliary/postprocess/pp_run.c
index caa2062..c6c7b88 100644
--- a/src/gallium/auxiliary/postprocess/pp_run.c
+++ b/src/gallium/auxiliary/postprocess/pp_run.c
@@ -262,7 +262,7 @@ pp_tgsi_to_state(struct pipe_context *pipe, const char *text, bool isvs,
*/
tokens = tgsi_alloc_tokens(PP_MAX_TOKENS);
- if (tokens == NULL) {
+ if (!tokens) {
pp_debug("Failed to allocate temporary token storage.\n");
return NULL;
}