diff options
author | Guojia Liao <liaoguojia@huawei.com> | 2019-08-09 05:31:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-09 23:44:33 +0300 |
commit | eddd98600b382d80cd71e44150eec5de4a0830a4 (patch) | |
tree | 93797f5c6f6fcead0c80e7a72e345fb1ea3beb56 /drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | |
parent | 427a7bff66c8a9f8cf68384e24093fc4bf7763a1 (diff) | |
download | linux-eddd98600b382d80cd71e44150eec5de4a0830a4.tar.xz |
net: hns3: refine some macro definitions
Macro arguments should be enclosed in parentheses, in case of
expression argument, but parentheses of pure number in macro
definition should be removed for simplicity.
Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h index 4ccf107079eb..bdde3afc286b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h @@ -125,7 +125,7 @@ #define HCLGEVF_S_IP_BIT BIT(3) #define HCLGEVF_V_TAG_BIT BIT(4) -#define HCLGEVF_STATS_TIMER_INTERVAL (36) +#define HCLGEVF_STATS_TIMER_INTERVAL 36U enum hclgevf_evt_cause { HCLGEVF_VECTOR0_EVENT_RST, |