From 6109652f5a319027d0bc822b3cee2ebc9102de68 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 18 Mar 2019 16:36:30 +0000 Subject: [PATCH] trivial: Remove some dead code Found using Coverity. --- src/fu-engine.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/fu-engine.c b/src/fu-engine.c index 3cbe2086e..a7ee61f8c 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -1468,16 +1468,8 @@ fu_engine_install (FuEngine *self, } /* just schedule this for the next reboot */ - 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; - } + if (flags & FWUPD_INSTALL_FLAG_OFFLINE) return fu_plugin_runner_schedule_update (plugin, device, blob_cab, error); - } /* install firmware blob */ version_orig = g_strdup (fu_device_get_version (device));