anv: simplify chained comparison
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 27 Feb 2019 10:40:14 +0000 (10:40 +0000)
committerEric Engestrom <eric@engestrom.ch>
Fri, 1 Mar 2019 11:20:28 +0000 (11:20 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_entrypoints_gen.py

index 1dca173c0a952e427f280967bfc2b744a762c656..6f6053915d8a70c7eec8f1d6e08f4566749fc355 100644 (file)
@@ -454,7 +454,7 @@ class StringIntMap(object):
     def add_string(self, string, num):
         assert not self.baked
         assert string not in self.strings
-        assert num >= 0 and num < 2**31
+        assert 0 <= num < 2**31
         self.strings[string] = StringIntMapEntry(string, num)
 
     def bake(self):