From c6feab5f512dc266f4d5eeda45b370ee8af5922c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 22 May 2012 09:55:16 +0200 Subject: eiotas_spin_add: uses INIT_IOTA and relies on eiotas_iota_init to check name parameter --- src/lib/eiotas_spin.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/eiotas_spin.c b/src/lib/eiotas_spin.c index 9080dd4..b10a6a3 100644 --- a/src/lib/eiotas_spin.c +++ b/src/lib/eiotas_spin.c @@ -28,14 +28,7 @@ EAPI Eiotas_Spin* eiotas_spin_add(const char* name, unsigned int step) { BUILD_INSTANCE(Eiotas_Spin,spin); - if(name==NULL) { - ERR("name can't be NULL"); - return NULL; - } - - if(eiotas_iota_init(&spin->room.iota,name,NULL,EIOTAS_TYPE_SPIN)) { - return NULL; - } + INIT_IOTA(&spin->room.iota,name,NULL,EIOTAS_TYPE_SPIN); spin->room.links = NULL; /* not used */ spin->room.children = eina_hash_stringshared_new((Eina_Free_Cb)&eiotas_iota_free); -- cgit v1.1-2-g2b99