dri: Simplify use of driConcatConfigs
authorChad Versace <chad.versace@linux.intel.com>
Thu, 2 Aug 2012 04:23:47 +0000 (21:23 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 7 Aug 2012 16:30:33 +0000 (09:30 -0700)
commita4bf68ca50da0ce291a464aec9b03a469ab2561a
tree48228cbcc200abb65e1aa8501142ae76183d802b
parentb2d428cb8d20e003b65769c7757a137406c671e6
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>
src/gallium/state_trackers/dri/common/dri_screen.c
src/mesa/drivers/dri/common/utils.c
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/nouveau/nouveau_screen.c
src/mesa/drivers/dri/radeon/radeon_screen.c