summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-01-15 20:57:02 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-01-15 20:57:46 +0100
commit3f80c23ff9700511c4921cab875d796bf7872faa (patch)
treeb22fc13e550edf2222d3853f19341f4d54f92191 /kconfiglib.py
parent183205912e0ffccaf18853ba73afc820ed454ff7 (diff)
Simplify non-bool/tristate return in tri_value()
Already know the value.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 37bac98..90408a3 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2508,7 +2508,7 @@ class Symbol(object):
if self.orig_type not in (BOOL, TRISTATE):
self._cached_tri_val = 0
- return self._cached_tri_val
+ return 0
val = 0
# Warning: See Symbol._rec_invalidate(), and note that this is a hidden