diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2018-02-22 23:43:19 +0100 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2018-03-15 10:31:42 -0500 |
commit | 613c55af75fe2316695a508607eae91df41f4960 (patch) | |
tree | ce6e1181fe52bf447fcf7096009234e8b5981f1f /build-aux | |
parent | dab4cc3792d84120e02e860814625beec4a8f381 (diff) |
qmi-codegen: allow empty input fields
The LOC service allows empty messages to trigger the sending of certain
indicator messages.
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/qmi-codegen/Message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/qmi-codegen/Message.py b/build-aux/qmi-codegen/Message.py index 0bf62f1..ea6622b 100644 --- a/build-aux/qmi-codegen/Message.py +++ b/build-aux/qmi-codegen/Message.py @@ -121,7 +121,7 @@ class Message: ' ${message_id});\n' % input_arg_template) cfile.write(string.Template(template).substitute(translations)) - if self.input.fields is not None: + if self.input.fields: # Count how many mandatory fields we have n_mandatory = 0 for field in self.input.fields: @@ -179,7 +179,7 @@ class Message: cfile.write( '\n' ' return self;\n') - if self.input.fields is not None: + if self.input.fields: cfile.write( '\n' 'error_out:\n' |