summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2023-09-28 09:54:33 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2023-09-29 08:53:17 +0000
commit026a74994248aa2187437183eccedb1415fd1dbe (patch)
tree84b9069619de9ac49a683a5ed88e2c72e761f772
parente442966bb3e71edaae8a2e0c120e63b1f619e508 (diff)
libqmi-glib,message: no flags when marker is qrtr
-rw-r--r--src/libqmi-glib/qmi-message.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libqmi-glib/qmi-message.c b/src/libqmi-glib/qmi-message.c
index ddf3a3d..306d081 100644
--- a/src/libqmi-glib/qmi-message.c
+++ b/src/libqmi-glib/qmi-message.c
@@ -159,11 +159,9 @@ set_message_length (QmiMessage *self,
static inline guint8
get_qmux_flags (QmiMessage *self)
{
- if (((struct full_message *)(self->data))->marker == QMI_MESSAGE_QMUX_MARKER)
- return ((struct full_message *)(self->data))->header.qmux.flags;
-
/* QMI_MESSAGE_QRTR_MARKER does not support flags */
- return 0x00;
+ g_assert_cmpuint (((struct full_message *)(self->data))->marker, ==, QMI_MESSAGE_QMUX_MARKER);
+ return ((struct full_message *)(self->data))->header.qmux.flags;
}
static inline guint8