summaryrefslogtreecommitdiff
path: root/android/health.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-06-24 15:11:57 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-06-25 17:29:54 +0200
commit90d3512560a7851c8589979bf1d303dd0d4a318a (patch)
treea0f8e189e7cc6558045de6c13a8d1d1ec61ecc04 /android/health.c
parenta1d44da04487880d3b034b2d4168eb1d40babc89 (diff)
downloadbluez-90d3512560a7851c8589979bf1d303dd0d4a318a.tar.gz
android/health: Remove extra check
gerr is always set on error condition.
Diffstat (limited to 'android/health.c')
-rw-r--r--android/health.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/android/health.c b/android/health.c
index a1ae29210..4ff435664 100644
--- a/android/health.c
+++ b/android/health.c
@@ -1281,10 +1281,7 @@ static void create_mcl_cb(struct mcap_mcl *mcl, GError *err, gpointer data)
MCAP_MDL_CB_INVALID);
if (!ret) {
error("health: error setting mdl callbacks on mcl");
-
- if (gerr)
- g_error_free(gerr);
-
+ g_error_free(gerr);
goto fail;
}