diff options
Diffstat (limited to 'content/content_factory.h')
-rw-r--r-- | content/content_factory.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/content/content_factory.h b/content/content_factory.h index 26c587575..22205dc02 100644 --- a/content/content_factory.h +++ b/content/content_factory.h @@ -31,26 +31,17 @@ nserror HNAME##_init(void) \ { \ uint32_t i; \ - nserror error; \ + nserror error = NSERROR_OK; \ \ for (i = 0; i < NOF_ELEMENTS(HTYPELIST); i++) { \ error = content_factory_register_handler( \ HTYPELIST[i], \ &HHANDLER); \ if (error != NSERROR_OK) \ - goto error; \ + break; \ } \ \ - return NSERROR_OK; \ - \ -error: \ - HNAME##_fini(); \ - \ return error; \ -} \ -/* Pointless */ \ -void HNAME##_fini(void) \ -{ \ } struct content; |