summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2014-02-10 09:23:53 -0800
committerAleksander Morgado <aleksander@aleksander.es>2014-02-10 19:51:18 +0100
commit50e173ed81ff498e7c0f00dcd11b02e136c8979b (patch)
treecf75acfd573039192207682fc8dc3c213644acba
parent3e5ab128bcf286bf80af684414dee5c4c4add009 (diff)
downloadlibmbim-50e173ed81ff498e7c0f00dcd11b02e136c8979b.tar.gz
libmbim-glib: remove invalid Context Type UUID conversion
This patch removes the following invalid conversion from UUID_DSS to a MBIM Context Type enumeration type: mbim-uuid.c:343:16: error: implicit conversion from enumeration type 'MbimService' to different enumeration type 'MbimContextType' [-Werror,-Wenum-conversion] return MBIM_SERVICE_DSS; ~~~~~~ ^~~~~~~~~~~~~~~~
-rw-r--r--src/libmbim-glib/mbim-uuid.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libmbim-glib/mbim-uuid.c b/src/libmbim-glib/mbim-uuid.c
index 7c7160e..f25cf2f 100644
--- a/src/libmbim-glib/mbim-uuid.c
+++ b/src/libmbim-glib/mbim-uuid.c
@@ -339,9 +339,6 @@ mbim_uuid_from_context_type (MbimContextType context_type)
MbimContextType
mbim_uuid_to_context_type (const MbimUuid *uuid)
{
- if (mbim_uuid_cmp (uuid, &uuid_dss))
- return MBIM_SERVICE_DSS;
-
if (mbim_uuid_cmp (uuid, &uuid_context_type_none))
return MBIM_CONTEXT_TYPE_NONE;