From 31d63d55096182a774cfc985974333456f7783de Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 9 May 2011 14:49:19 +0200 Subject: [PATCH] Remove not needed GError* assignements to NULL --- health/hdp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/health/hdp.c b/health/hdp.c index 0f8d6fa22..df388bc87 100644 --- a/health/hdp.c +++ b/health/hdp.c @@ -587,7 +587,6 @@ static void device_reconnect_mdl_cb(struct mcap_mdl *mdl, GError *err, g_dbus_send_message(dc_data->conn, reply); hdp_tmp_dc_data_unref(dc_data); g_error_free(gerr); - gerr = NULL; /* Send abort request because remote side is now in PENDING state */ if (!mcap_mdl_abort(mdl, abort_mdl_cb, NULL, NULL, &gerr)) { @@ -1736,7 +1735,6 @@ static void device_create_mdl_cb(struct mcap_mdl *mdl, uint8_t conf, error("%s", gerr->message); g_error_free(gerr); - gerr = NULL; reply = g_dbus_create_reply(hdp_conn->msg, DBUS_TYPE_OBJECT_PATH, &hdp_chan->path, @@ -1758,7 +1756,6 @@ fail: "%s", gerr->message); g_dbus_send_message(user_data->conn, reply); g_error_free(gerr); - gerr = NULL; /* Send abort request because remote side is now in PENDING */ /* state. Then we have to delete it because we couldn't */ -- 2.47.3