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

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
...@@ -608,14 +608,9 @@ static int ice_finalize_update(struct pldmfw *context) ...@@ -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 ice_fwu_priv *priv = container_of(context, struct ice_fwu_priv, context);
struct netlink_ext_ack *extack = priv->extack; struct netlink_ext_ack *extack = priv->extack;
struct ice_pf *pf = priv->pf; struct ice_pf *pf = priv->pf;
int err;
/* Finally, notify firmware to activate the written NVM banks */ /* Finally, notify firmware to activate the written NVM banks */
err = ice_switch_flash_banks(pf, priv->activate_flags, extack); return ice_switch_flash_banks(pf, priv->activate_flags, extack);
if (err)
return err;
return 0;
} }
static const struct pldmfw_ops ice_fwu_ops = { static const struct pldmfw_ops ice_fwu_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment