summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nouveau_screen.c
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-08-01 21:23:47 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-08-07 09:30:33 -0700
commita4bf68ca50da0ce291a464aec9b03a469ab2561a (patch)
tree48228cbcc200abb65e1aa8501142ae76183d802b /src/mesa/drivers/dri/nouveau/nouveau_screen.c
parentb2d428cb8d20e003b65769c7757a137406c671e6 (diff)
downloadexternal_mesa3d-a4bf68ca50da0ce291a464aec9b03a469ab2561a.zip
external_mesa3d-a4bf68ca50da0ce291a464aec9b03a469ab2561a.tar.gz
external_mesa3d-a4bf68ca50da0ce291a464aec9b03a469ab2561a.tar.bz2
dri: Simplify use of driConcatConfigs
If either argument to driConcatConfigs(a, b) is null or the empty list, then simply return the other argument as the resultant list. All callers were accomplishing that same behavior anyway. And each caller accopmplished it with the same pattern. So this patch moves that external pattern into the function. Reviewed-by: <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_screen.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_screen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
index 2a15c08..3f65c36 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_screen.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
@@ -79,8 +79,7 @@ nouveau_get_configs(void)
GL_TRUE);
assert(config);
- configs = configs ? driConcatConfigs(configs, config)
- : config;
+ configs = driConcatConfigs(configs, config);
}
return (const __DRIconfig **)configs;