From: Eric Engestrom Date: Tue, 21 Aug 2018 14:20:40 +0000 (+0100) Subject: intel/genxml: minor python style fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81fe9bdf6d69b4bacf5adfb9f54fe304398fbf7b;p=mesa.git intel/genxml: minor python style fix Suggested-by: Dylan Baker Signed-off-by: Eric Engestrom --- 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 + "_"