[staticanalysis]: Fix some dead code

One was an unused variable, the other is actually dead because we
can't have mfile != NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=732020
This commit is contained in:
Colin Walters committed 2014-06-21 18:08:49 -04:00
1 parent 54079982d8
commit 5936740b95
2 files changed
-9

No files matched your search

-3
View File
@@ -140,14 +140,11 @@ ot_util_variant_map (GFile *src,
trusted,
(GDestroyNotify) g_mapped_file_unref,
mfile);
mfile = NULL;
g_variant_ref_sink (ret_variant);
ret = TRUE;
ot_transfer_out_value(out_variant, &ret_variant);
out:
if (mfile)
g_mapped_file_unref (mfile);
return ret;
}