Skip to content

Commit 6a44426

Browse files
mrc0mmandjohannbg
authored andcommitted
fix(install): add a missing ret value assignment
Spotted when reconfiguring LGTM for RHEL 9 dracut repo.
1 parent a97d6e2 commit 6a44426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/install/dracut-install.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1448,14 +1448,14 @@ static int install_firmware(struct kmod_module *mod)
14481448
_cleanup_globfree_ glob_t globbuf;
14491449
glob(fwpath, 0, NULL, &globbuf);
14501450
for (i = 0; i < globbuf.gl_pathc; i++) {
1451-
install_firmware_fullpath(globbuf.gl_pathv[i]);
1451+
ret = install_firmware_fullpath(globbuf.gl_pathv[i]);
14521452
if (ret != 0) {
14531453
log_info("Possible missing firmware %s for kernel module %s", value,
14541454
kmod_module_get_name(mod));
14551455
}
14561456
}
14571457
} else {
1458-
install_firmware_fullpath(fwpath);
1458+
ret = install_firmware_fullpath(fwpath);
14591459
if (ret != 0) {
14601460
log_info("Possible missing firmware %s for kernel module %s", value,
14611461
kmod_module_get_name(mod));

0 commit comments

Comments
 (0)