projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove some bogus error checking and return void instead of int.
[oweals/opkg-lede.git]
/
libopkg
/
opkg.c
diff --git
a/libopkg/opkg.c
b/libopkg/opkg.c
index d7948e9ab537722e479905153fde74fe8366a88d..785d58866076f5dbff64c67019ee67aa0a38744a 100644
(file)
--- 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));
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);
opkg->conf = xcalloc(1, sizeof (opkg_conf_t));
err = opkg_conf_init (opkg->conf, opkg->args);