diff options
author | Christophe JAILLET <[email protected]> | 2022-07-20 15:28:44 +0200 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2022-07-29 18:29:16 +0800 |
commit | 383ce25dd2b117da0c092dc0b45e7ad0e9ffcbb2 (patch) | |
tree | 1883dc15d4468813c11df58578baab6e33b4472b /scripts/gdb/linux/utils.py | |
parent | 96ec8dfdd094b7b2b015e092d581835a732949ff (diff) |
crypto: ccree - Remove a useless dma_supported() call
There is no point in calling dma_supported() before calling
dma_set_coherent_mask(). This function already calls dma_supported() and
returns an error (-EIO) if it fails.
So remove the superfluous dma_supported() call.
Moreover, setting a larger DMA mask will never fail when setting a smaller
one will succeed, so the whole "while" loop can be removed as well. (see
[1])
While at it, fix the name of the function reported in a dev_err().
[1]: https://lore.kernel.org/all/[email protected]/
Suggested-by: Christoph Hellwig <[email protected]>
Signed-off-by: Christophe JAILLET <[email protected]>
Acked-by: Gilad Ben-Yossef <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions