diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-08-19 09:18:53 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-08-27 11:58:51 +0200 |
commit | 5f8a3ed38bec0e1bfefcec6b06ba378811bb9952 (patch) | |
tree | 675103ca8cd9c45ad94eb596144ade0926d8d838 /init | |
parent | mwifiex: switch from 'pci_' to 'dma_' API (diff) | |
download | linux-5f8a3ed38bec0e1bfefcec6b06ba378811bb9952.tar.xz linux-5f8a3ed38bec0e1bfefcec6b06ba378811bb9952.zip |
mwifiex: Clean up some err and dbg messages
The error message if 'pci_set_consistent_dma_mask()' fails is misleading.
The function call uses 32 bits, but the error message reports 64.
Moreover, according to the comment above 'dma_set_mask_and_coherent()'
definition, such an error can never happen.
So, simplify code, axe the misleading message and use
'dma_set_mask_and_coherent()' instead of 'dma_set_mask()' +
'dma_set_coherent_mask()'
While at it, make some clean-up:
- add # when reporting allocated length to be consistent between
functions
- s/consistent/coherent/
- s/unsigned int/u32/ to be consistent between functions
- align some code
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200819071853.113185-1-christophe.jaillet@wanadoo.fr
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions