summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 1fe3929..97e6358 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2444,20 +2444,16 @@ class Symbol(Item, _HasVisibility):
things will just work with regards to dependencies.
v -- The user value to give to the symbol."""
- old_user_val = self.user_val
-
self._set_user_value_no_invalidate(v, False)
- # If the user value changed, invalidate all dependent symbols
- if self.user_val != old_user_val:
- # There might be something more efficient you could do here, but play
- # it safe.
- if self.name == "MODULES":
- self.config._invalidate_all()
- return
+ # There might be something more efficient you could do here, but play
+ # it safe.
+ if self.name == "MODULES":
+ self.config._invalidate_all()
+ return
- self._invalidate()
- self._invalidate_dependent()
+ self._invalidate()
+ self._invalidate_dependent()
def unset_user_value(self):
"""Resets the user value of the symbol, as if the symbol had never