From: Yunsheng Lin Date: Mon, 9 Oct 2017 07:43:55 +0000 (+0800) Subject: net: hns3: Cleanup for shifting true in hns3 driver X-Git-Tag: v4.19~2168^2~519^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bca3b94dfbf9259d972a5be91333dda6eb9f350;p=platform%2Fkernel%2Flinux-rpi.git net: hns3: Cleanup for shifting true in hns3 driver This patch fixes a shifting true in hclge_main module. Signed-off-by: Yunsheng Lin Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 1a13614..5c1bf12 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -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 =