diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-06-24 15:11:57 +0300 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-06-25 17:29:54 +0200 |
commit | 90d3512560a7851c8589979bf1d303dd0d4a318a (patch) | |
tree | a0f8e189e7cc6558045de6c13a8d1d1ec61ecc04 /android/health.c | |
parent | a1d44da04487880d3b034b2d4168eb1d40babc89 (diff) | |
download | bluez-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.c | 5 |
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; } |