Thread (11 messages) flat view 11 messages, 5 authors, 2011-12-05

Re: [PATCH 2/3] Remove unwanted GError* assignment to NULL

From: Johan Hedberg <hidden>
Date: 2011-12-02 11:18:27

Hi Syam,

On Thu, Nov 24, 2011, Syam Sidhardhan wrote:
quoted hunk ↗ jump to hunk
---
 health/hdp.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/health/hdp.c b/health/hdp.c
index d167ab0..403d4c8 100644
--- a/health/hdp.c
+++ b/health/hdp.c
@@ -551,7 +551,6 @@ static void hdp_get_dcpsm_cb(uint16_t dcpsm, gpointer user_data, GError *err)
 	hdp_tmp_dc_data_unref(hdp_conn);
 	hdp_conn->cb(hdp_chann->mdl, err, hdp_conn);
 	g_error_free(gerr);
-	gerr = NULL;
 }
Applied, however a bigger question is whether gerr is even needed in
this function at all since it's never used after potentially being set.

Johan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help