Remove some bogus error checking and return void instead of int.
[oweals/opkg-lede.git] / libopkg / opkg.c
index d7948e9ab537722e479905153fde74fe8366a88d..785d58866076f5dbff64c67019ee67aa0a38744a 100644 (file)
@@ -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);