Skip to content

Commit

Permalink
net: hns3: Cleanup for shifting true in hns3 driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yunsheng Lin authored and David S. Miller committed Oct 9, 2017
1 parent c49c777 commit 5bca3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 5bca3b9

Please sign in to comment.