diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-12-12 18:36:27 -0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-12-12 18:36:27 -0200 |
commit | 1c250ec1504150e5be09f2c4a58f9282bf937f86 (patch) | |
tree | dc7d385535355cde776e5397093fc91b10ad0a58 /libkmod | |
parent | 973c80ba7c4e38f1d4fb54ae9258b1977b3c3f12 (diff) | |
download | kmod-1c250ec1504150e5be09f2c4a58f9282bf937f86.tar.gz |
Fix "Dead assignments" as reported by llvm
Diffstat (limited to 'libkmod')
-rw-r--r-- | libkmod/libkmod-config.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c index 0b5ac70..44fad72 100644 --- a/libkmod/libkmod-config.c +++ b/libkmod/libkmod-config.c @@ -402,15 +402,14 @@ static DIR *conf_files_list(struct kmod_ctx *ctx, struct kmod_list **list, DIR *d; int err; + *list = NULL; + d = opendir(path); if (d == NULL) { - err = errno; ERR(ctx, "%m\n"); return NULL; } - *list = NULL; - for (;;) { struct dirent ent, *entp; struct kmod_list *l, *tmp; |