summaryrefslogtreecommitdiff
path: root/src/mbimcli/mbimcli-ms-firmware-id.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbimcli/mbimcli-ms-firmware-id.c')
-rw-r--r--src/mbimcli/mbimcli-ms-firmware-id.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbimcli/mbimcli-ms-firmware-id.c b/src/mbimcli/mbimcli-ms-firmware-id.c
index 9cbd255..69d662e 100644
--- a/src/mbimcli/mbimcli-ms-firmware-id.c
+++ b/src/mbimcli/mbimcli-ms-firmware-id.c
@@ -153,8 +153,7 @@ mbimcli_ms_firmware_id_run (MbimDevice *device,
/* Initialize context */
ctx = g_slice_new (Context);
ctx->device = g_object_ref (device);
- if (cancellable)
- ctx->cancellable = g_object_ref (cancellable);
+ ctx->cancellable = cancellable ? g_object_ref (cancellable) : NULL;
/* Request to get firmware ID? */
if (query_firmware_id_flag) {