diff options
author | Andrey Smirnov | 2019-08-20 13:23:47 -0700 |
---|---|---|
committer | Herbert Xu | 2019-08-30 18:05:28 +1000 |
commit | 70c0cda27a10df44e81887bc4cb10f587236a941 (patch) | |
tree | d6897ec7b9c8624a4f134d70f82cae8bd95c4475 /.cocciconfig | |
parent | 671e50384ee6267052c5d613dc84a72b7fe9ef4b (diff) |
crypto: caam - move DMA mask selection into a function
Exactly the same code to figure out DMA mask is repeated twice in the
driver code. To avoid repetition, move that logic into a standalone
subroutine in intern.h. While at it re-shuffle the code to make it
more readable with early returns.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Cc: Chris Spencer <christopher.spencer@sea.co.uk>
Cc: Cory Tusar <cory.tusar@zii.aero>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Horia Geantă <horia.geanta@nxp.com>
Cc: Aymen Sghaier <aymen.sghaier@nxp.com>
Cc: Leonard Crestez <leonard.crestez@nxp.com>
Cc: linux-crypto@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions