mwifiex: Clean up some err and dbg messages
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 19 Aug 2020 07:18:53 +0000 (09:18 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Aug 2020 09:58:51 +0000 (12:58 +0300)
commit5f8a3ed38bec0e1bfefcec6b06ba378811bb9952
tree675103ca8cd9c45ad94eb596144ade0926d8d838
parent4cf975f640fefdfdf6168a79e882558478ce057a
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
drivers/net/wireless/marvell/mwifiex/pcie.c