Commit ccb5942a authored by Qinglang Miao's avatar Qinglang Miao Committed by David S. Miller
Browse files

ice: simplify the return expression of ice_finalize_update()



Simplify the return expression.

Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2595b113
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -608,14 +608,9 @@ static int ice_finalize_update(struct pldmfw *context)
	struct ice_fwu_priv *priv = container_of(context, struct ice_fwu_priv, context);
	struct netlink_ext_ack *extack = priv->extack;
	struct ice_pf *pf = priv->pf;
	int err;

	/* Finally, notify firmware to activate the written NVM banks */
	err = ice_switch_flash_banks(pf, priv->activate_flags, extack);
	if (err)
		return err;

	return 0;
	return ice_switch_flash_banks(pf, priv->activate_flags, extack);
}

static const struct pldmfw_ops ice_fwu_ops = {