Commit 17f86c5b authored by Qinglang Miao's avatar Qinglang Miao Committed by Herbert Xu

crypto: mediatek - simplify the return expression of mtk_dfe_dse_reset()

Simplify the return expression.
Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 5784cfb2
...@@ -185,8 +185,6 @@ static int mtk_dfe_dse_state_check(struct mtk_cryp *cryp) ...@@ -185,8 +185,6 @@ static int mtk_dfe_dse_state_check(struct mtk_cryp *cryp)
static int mtk_dfe_dse_reset(struct mtk_cryp *cryp) static int mtk_dfe_dse_reset(struct mtk_cryp *cryp)
{ {
int err;
/* Reset DSE/DFE and correct system priorities for all rings. */ /* Reset DSE/DFE and correct system priorities for all rings. */
writel(MTK_DFSE_THR_CTRL_RESET, cryp->base + DFE_THR_CTRL); writel(MTK_DFSE_THR_CTRL_RESET, cryp->base + DFE_THR_CTRL);
writel(0, cryp->base + DFE_PRIO_0); writel(0, cryp->base + DFE_PRIO_0);
...@@ -200,11 +198,7 @@ static int mtk_dfe_dse_reset(struct mtk_cryp *cryp) ...@@ -200,11 +198,7 @@ static int mtk_dfe_dse_reset(struct mtk_cryp *cryp)
writel(0, cryp->base + DSE_PRIO_2); writel(0, cryp->base + DSE_PRIO_2);
writel(0, cryp->base + DSE_PRIO_3); writel(0, cryp->base + DSE_PRIO_3);
err = mtk_dfe_dse_state_check(cryp); return mtk_dfe_dse_state_check(cryp);
if (err)
return err;
return 0;
} }
static void mtk_cmd_desc_ring_setup(struct mtk_cryp *cryp, static void mtk_cmd_desc_ring_setup(struct mtk_cryp *cryp,
......
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