intel/genxml: minor python style fix
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 21 Aug 2018 14:20:40 +0000 (15:20 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 21 Aug 2018 14:30:55 +0000 (15:30 +0100)
Suggested-by: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
src/intel/genxml/gen_pack_header.py

index 0bf838de8c60cd8744a642e56ea44d3ec9a4139a..9675b4b4d529252a92e1aba784f6841f470b3169 100644 (file)
@@ -306,7 +306,7 @@ class Field(object):
         print("   %-36s %s%s;" % (type, self.name, dim))
 
         prefix = ""
-        if self.values and self.default == None:
+        if self.values and self.default is None:
             if self.prefix:
                 prefix = self.prefix + "_"