]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun4i-ss - use GENMASK to generate masks
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Thu, 1 Jun 2017 19:39:00 +0000 (21:39 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 Jun 2017 06:19:51 +0000 (14:19 +0800)
commita1a9f86ce2d2b015ec86a74a9babaac563a25415
tree4ec34da8d502d737a49c011a203f5638597d9047
parent34a45331a3c3089e0cf3760e205053db398d762e
crypto: sun4i-ss - use GENMASK to generate masks

Use the GENMASK helper instead of custom calculations to generate masks,
It also helps the readability.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sunxi-ss/sun4i-ss-hash.c