trivial: Remove a condition that can never be non-valid

PVS: A part of conditional expression is always true: priv->children->len > 0.
This commit is contained in:
Richard Hughes 2022-09-09 10:35:26 +01:00
parent 72f6cc5a0a
commit 5014c87a2a

View File

@ -636,7 +636,7 @@ fu_progress_child_percentage_changed_cb(FuProgress *child, guint percentage, FuP
}
/* if the child finished, set the status back to the last parent status */
if (percentage == 100 && priv->children->len > 0) {
if (percentage == 100) {
FuProgress *child_tmp = g_ptr_array_index(priv->children, priv->step_now);
if (fu_progress_get_status(child_tmp) != FWUPD_STATUS_UNKNOWN)
fu_progress_set_status(self, fu_progress_get_status(child_tmp));