mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:05:18 +07:00
ice: simplify the return expression of ice_finalize_update()
Simplify the return expression. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2595b113d9
commit
ccb5942add
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user