commit | 70c0cda27a10df44e81887bc4cb10f587236a941 | [log] [tgz] |
---|---|---|
author | Andrey Smirnov <[email protected]> | Tue Aug 20 13:23:47 2019 -0700 |
committer | Herbert Xu <[email protected]> | Fri Aug 30 18:05:28 2019 +1000 |
tree | d6897ec7b9c8624a4f134d70f82cae8bd95c4475 | |
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 <[email protected]> Reviewed-by: Horia Geantă <[email protected]> Cc: Chris Spencer <[email protected]> Cc: Cory Tusar <[email protected]> Cc: Chris Healy <[email protected]> Cc: Lucas Stach <[email protected]> Cc: Horia Geantă <[email protected]> Cc: Aymen Sghaier <[email protected]> Cc: Leonard Crestez <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Herbert Xu <[email protected]>