net: hns: fix the error info when dma_set_mask_and_coherent fail
authorQianqian Xie <xieqianqian@huawei.com>
Tue, 21 Jun 2016 03:56:26 +0000 (11:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 08:51:54 +0000 (04:51 -0400)
The error info should be printed as "set mask to 64bit fail!" instead of
"set mask to 32bit fail!" in dma_set_mask_and_coherent().

Signed-off-by: Qianqian Xie <xieqianqian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c

index b978db46435efb98937e2d8eee0c1e0ea8f6bdb7..00e529f2f153674df7f95e6d4253d50c6040e57b 100644 (file)
@@ -1972,7 +1972,7 @@ static int hns_nic_dev_probe(struct platform_device *pdev)
        if (!dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)))
                dev_dbg(dev, "set mask to 64bit\n");
        else
-               dev_err(dev, "set mask to 32bit fail!\n");
+               dev_err(dev, "set mask to 64bit fail!\n");
 
        /* carrier off reporting is important to ethtool even BEFORE open */
        netif_carrier_off(ndev);