mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
crypto: caam - remove unused local variable
Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
35b82e5540
commit
467707b2b7
@ -175,13 +175,10 @@ static int instantiate_rng(struct device *ctrldev, int state_handle_mask,
|
|||||||
{
|
{
|
||||||
struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctrldev);
|
struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctrldev);
|
||||||
struct caam_ctrl __iomem *ctrl;
|
struct caam_ctrl __iomem *ctrl;
|
||||||
struct rng4tst __iomem *r4tst;
|
|
||||||
u32 *desc, status, rdsta_val;
|
u32 *desc, status, rdsta_val;
|
||||||
int ret = 0, sh_idx;
|
int ret = 0, sh_idx;
|
||||||
|
|
||||||
ctrl = (struct caam_ctrl __iomem *)ctrlpriv->ctrl;
|
ctrl = (struct caam_ctrl __iomem *)ctrlpriv->ctrl;
|
||||||
r4tst = &ctrl->r4tst[0];
|
|
||||||
|
|
||||||
desc = kmalloc(CAAM_CMD_SZ * 7, GFP_KERNEL);
|
desc = kmalloc(CAAM_CMD_SZ * 7, GFP_KERNEL);
|
||||||
if (!desc)
|
if (!desc)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
@ -209,8 +206,7 @@ static int instantiate_rng(struct device *ctrldev, int state_handle_mask,
|
|||||||
* without any error (HW optimizations for later
|
* without any error (HW optimizations for later
|
||||||
* CAAM eras), then try again.
|
* CAAM eras), then try again.
|
||||||
*/
|
*/
|
||||||
rdsta_val =
|
rdsta_val = rd_reg32(&ctrl->r4tst[0].rdsta) & RDSTA_IFMASK;
|
||||||
rd_reg32(&ctrl->r4tst[0].rdsta) & RDSTA_IFMASK;
|
|
||||||
if (status || !(rdsta_val & (1 << sh_idx)))
|
if (status || !(rdsta_val & (1 << sh_idx)))
|
||||||
ret = -EAGAIN;
|
ret = -EAGAIN;
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user