---
drivers/atmodem/atutil.h | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/drivers/atmodem/atutil.h b/drivers/atmodem/atutil.h
index 3d13b84..a27de86 100644
--- a/drivers/atmodem/atutil.h
+++ b/drivers/atmodem/atutil.h
@@ -84,10 +84,7 @@ static inline struct cb_data *cb_data_new(void *cb, void
*data)
{
struct cb_data *ret;
- ret = g_try_new0(struct cb_data, 1);
- if (ret == NULL)
- return ret;
-
+ ret = g_new0(struct cb_data, 1);
ret->cb = cb;
ret->data = data;
--
1.7.0.4
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono