From 3cfdd3aba4bb9a91bef54298522812ffcc22b3af Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Fri, 3 Jun 2016 21:41:20 +0200 Subject: [PATCH] tools: simplify python statement Signed-off-by: Ralf Ramsauer Signed-off-by: Jan Kiszka --- tools/jailhouse-config-create | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/jailhouse-config-create b/tools/jailhouse-config-create index 4e61abc..49a002e 100755 --- a/tools/jailhouse-config-create +++ b/tools/jailhouse-config-create @@ -373,10 +373,7 @@ class MemRegion: self.start = start self.stop = stop self.typestr = typestr - if comments is None: - self.comments = [] - else: - self.comments = comments + self.comments = comments or [] def __str__(self): return 'MemRegion: %08x-%08x : %s' % \ -- 2.39.2