OSDN Git Service

net: hns3: Consistently using GENMASK in hns3 driver
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 9 Oct 2017 07:43:58 +0000 (15:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 16:46:54 +0000 (09:46 -0700)
commit5392902d332b85a93e3be2755f7f6df183e5cafc
tree7b9a795b48d0afc07e9a2028b3e45af1682d4412
parent56cf68c73019ec3f04b1ae69f76f524918fb22cb
net: hns3: Consistently using GENMASK in hns3 driver

This patch uses GENMASK to generate bit mask whenever
possible in hns3 driver.

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