summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2009-06-08 12:30:14 -0700
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2009-06-08 12:44:24 -0700
commitfe980831945795e48b4d35a10392346ae01afc6c (patch)
tree5ae677b98050c54ce0a5fe28e136a07d1304b648
parent29de59fb35f40b8d519f390bf523f4ea6df4f584 (diff)
libwimaxll-i2400m: fix i2400m_create() uninitialized usage of 'result'
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
-rw-r--r--lib/i2400m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/i2400m.c b/lib/i2400m.c
index 6b96f3d..0cc8d4a 100644
--- a/lib/i2400m.c
+++ b/lib/i2400m.c
@@ -252,10 +252,10 @@ int i2400m_create(struct i2400m **_i2400m, const char *ifname,
int result;
struct i2400m *i2400m;
+ result = -ENOMEM;
i2400m = calloc(sizeof(*i2400m), 1);
if (i2400m == NULL)
goto error_calloc;
- result = -ENODEV;
i2400m->wmx = wimaxll_open(ifname);
if (i2400m->wmx == NULL) {
result = -errno;