Skip to content

Commit

Permalink
fix(install): add a missing ret value assignment
Browse files Browse the repository at this point in the history
Spotted when reconfiguring LGTM for RHEL 9 dracut repo.
  • Loading branch information
mrc0mmand authored and johannbg committed Jun 28, 2021
1 parent a97d6e2 commit 6a44426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/install/dracut-install.c
Original file line number Diff line number Diff line change
Expand Up @@ -1448,14 +1448,14 @@ static int install_firmware(struct kmod_module *mod)
_cleanup_globfree_ glob_t globbuf;
glob(fwpath, 0, NULL, &globbuf);
for (i = 0; i < globbuf.gl_pathc; i++) {
install_firmware_fullpath(globbuf.gl_pathv[i]);
ret = install_firmware_fullpath(globbuf.gl_pathv[i]);
if (ret != 0) {
log_info("Possible missing firmware %s for kernel module %s", value,
kmod_module_get_name(mod));
}
}
} else {
install_firmware_fullpath(fwpath);
ret = install_firmware_fullpath(fwpath);
if (ret != 0) {
log_info("Possible missing firmware %s for kernel module %s", value,
kmod_module_get_name(mod));
Expand Down

0 comments on commit 6a44426

Please sign in to comment.