[PATCH 3/4] qmi-codegen: allow empty input fields
Thomas Weißschuh
thomas at t-8ch.de
Sun Jan 28 15:50:40 UTC 2018
The LOC service allows empty messages to trigger the sending of certain
indicator messages.
---
build-aux/qmi-codegen/Message.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-aux/qmi-codegen/Message.py b/build-aux/qmi-codegen/Message.py
index 0bf62f1..57c0d5e 100644
--- a/build-aux/qmi-codegen/Message.py
+++ b/build-aux/qmi-codegen/Message.py
@@ -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'
--
2.16.1
More information about the libqmi-devel
mailing list