net: hns3: Cleanup for shifting true in hns3 driver
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 9 Oct 2017 07:43:55 +0000 (15:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 16:46:53 +0000 (09:46 -0700)
This patch fixes a shifting true in hclge_main module.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 1a13614af3dec6ddac38919716f72b96cb5ee8c7..5c1bf12beade6c2e6ddc87d0c2fdf7559fbdc25f 100644 (file)
@@ -1687,7 +1687,7 @@ static int hclge_rx_priv_buf_alloc(struct hclge_dev *hdev,
                req->buf_num[i] =
                        cpu_to_le16(priv->buf_size >> HCLGE_BUF_UNIT_S);
                req->buf_num[i] |=
-                       cpu_to_le16(true << HCLGE_TC0_PRI_BUF_EN_B);
+                       cpu_to_le16(1 << HCLGE_TC0_PRI_BUF_EN_B);
        }
 
        req->shared_buf =