From 81fe9bdf6d69b4bacf5adfb9f54fe304398fbf7b Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 21 Aug 2018 15:20:40 +0100 Subject: [PATCH] intel/genxml: minor python style fix Suggested-by: Dylan Baker Signed-off-by: Eric Engestrom --- src/intel/genxml/gen_pack_header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py index 0bf838de8c6..9675b4b4d52 100644 --- a/src/intel/genxml/gen_pack_header.py +++ b/src/intel/genxml/gen_pack_header.py @@ -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 + "_" -- 2.30.2