OSDN Git Service

mwifiex: drop 'set_consistent_dma_mask' log message
authorBrian Norris <briannorris@chromium.org>
Tue, 4 Jun 2019 17:28:58 +0000 (10:28 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 04:46:02 +0000 (07:46 +0300)
This message is pointless.

While we're at it, include the error code in the error message, which is
not pointless.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c

index 3fe81b2..82f58bf 100644 (file)
@@ -2924,10 +2924,9 @@ static int mwifiex_init_pcie(struct mwifiex_adapter *adapter)
 
        pci_set_master(pdev);
 
-       pr_notice("try set_consistent_dma_mask(32)\n");
        ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
        if (ret) {
-               pr_err("set_dma_mask(32) failed\n");
+               pr_err("set_dma_mask(32) failed: %d\n", ret);
                goto err_set_dma_mask;
        }