Fix "Dead assignments" as reported by llvm
This commit is contained in:
parent
973c80ba7c
commit
1c250ec150
|
@ -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;
|
||||
|
|
|
@ -32,7 +32,6 @@ int main(int argc, char *argv[])
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
err = 0;
|
||||
kmod_list_foreach(itr, list) {
|
||||
struct kmod_module *mod = kmod_module_get_module(itr);
|
||||
const char *name = kmod_module_get_name(mod);
|
||||
|
|
Loading…
Reference in New Issue