From a6502c7951410e25df67c621165581ebd99fbb0f Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 05 Nov 2009 19:50:12 -0500 Subject: Remove some bogus error checking and return void instead of int. git-svn-id: http://opkg.googlecode.com/svn/trunk@266 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg.c') diff --git a/libopkg/opkg.c b/libopkg/opkg.c index d7948e9..785d588 100644 --- a/libopkg/opkg.c +++ b/libopkg/opkg.c @@ -190,13 +190,7 @@ opkg_new () opkg = xcalloc(1, sizeof (opkg_t)); opkg->args = xcalloc(1, sizeof (args_t)); - err = args_init (opkg->args); - if (err) - { - free (opkg->args); - free (opkg); - return NULL; - } + args_init (opkg->args); opkg->conf = xcalloc(1, sizeof (opkg_conf_t)); err = opkg_conf_init (opkg->conf, opkg->args); -- cgit v0.9.1