mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-17 17:49:54 +00:00
trivial: Remove some dead code
Found using Coverity.
This commit is contained in:
parent
b7537782cb
commit
6109652f5a
@ -1468,16 +1468,8 @@ fu_engine_install (FuEngine *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* just schedule this for the next reboot */
|
/* just schedule this for the next reboot */
|
||||||
if (flags & FWUPD_INSTALL_FLAG_OFFLINE) {
|
if (flags & FWUPD_INSTALL_FLAG_OFFLINE)
|
||||||
if (blob_cab == NULL) {
|
|
||||||
g_set_error_literal (error,
|
|
||||||
FWUPD_ERROR,
|
|
||||||
FWUPD_ERROR_NOT_SUPPORTED,
|
|
||||||
"No cabinet archive to schedule");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
return fu_plugin_runner_schedule_update (plugin, device, blob_cab, error);
|
return fu_plugin_runner_schedule_update (plugin, device, blob_cab, error);
|
||||||
}
|
|
||||||
|
|
||||||
/* install firmware blob */
|
/* install firmware blob */
|
||||||
version_orig = g_strdup (fu_device_get_version (device));
|
version_orig = g_strdup (fu_device_get_version (device));
|
||||||
|
Loading…
Reference in New Issue
Block a user