summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2016-03-29 16:11:25 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2016-03-31 16:03:58 -0700
commit424d733edad74a33986130f7f9cd32251ff8f8b0 (patch)
tree5d178bccd37e7c79db3c9d86709776fbee2b42ba
parentf931b851cd532900551e8b3dad65b727f9c1e25e (diff)
glapi: gl_XML.py: avoid unnecessary method call
Don't call and store a value that might not be used unless it's know it's needed. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
-rw-r--r--src/mapi/glapi/gen/gl_XML.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py
index 34f987ee3b..a860b0d84f 100644
--- a/src/mapi/glapi/gen/gl_XML.py
+++ b/src/mapi/glapi/gen/gl_XML.py
@@ -243,13 +243,12 @@ class gl_print_base(object):
def real_function_name(element):
- name = element.get("name")
alias = element.get("alias")
if alias:
return alias
else:
- return name
+ return element.get("name")
def real_category_name(c):