Skip to content

Commit

Permalink
crypto: s5p-sss - Minor coding cleanups
Browse files Browse the repository at this point in the history
Remove unneeded inclusion of delay.h and get rid of indentation from
labels.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Krzysztof Kozlowski authored and Herbert Xu committed Apr 5, 2016
1 parent 29e9330 commit 119c3ab
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions drivers/crypto/s5p-sss.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*
*/

#include <linux/delay.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/init.h>
Expand Down Expand Up @@ -284,7 +283,7 @@ static int s5p_set_outdata(struct s5p_aes_dev *dev, struct scatterlist *sg)
dev->sg_dst = sg;
err = 0;

exit:
exit:
return err;
}

Expand All @@ -310,7 +309,7 @@ static int s5p_set_indata(struct s5p_aes_dev *dev, struct scatterlist *sg)
dev->sg_src = sg;
err = 0;

exit:
exit:
return err;
}

Expand Down Expand Up @@ -452,10 +451,10 @@ static void s5p_aes_crypt_start(struct s5p_aes_dev *dev, unsigned long mode)

return;

outdata_error:
outdata_error:
s5p_unset_indata(dev);

indata_error:
indata_error:
s5p_aes_complete(dev, err);
spin_unlock_irqrestore(&dev->lock, flags);
}
Expand Down Expand Up @@ -506,7 +505,7 @@ static int s5p_aes_handle_req(struct s5p_aes_dev *dev,

tasklet_schedule(&dev->tasklet);

exit:
exit:
return err;
}

Expand Down Expand Up @@ -705,15 +704,15 @@ static int s5p_aes_probe(struct platform_device *pdev)

return 0;

err_algs:
err_algs:
dev_err(dev, "can't register '%s': %d\n", algs[i].cra_name, err);

for (j = 0; j < i; j++)
crypto_unregister_alg(&algs[j]);

tasklet_kill(&pdata->tasklet);

err_irq:
err_irq:
clk_disable_unprepare(pdata->clk);

s5p_dev = NULL;
Expand Down

0 comments on commit 119c3ab

Please sign in to comment.