diff options
| author | 2021-08-28 14:55:16 +0800 | |
|---|---|---|
| committer | 2021-08-28 11:20:05 +0100 | |
| commit | e1d93bc6ef3bf497675f9ac2b35b79c48577b970 (patch) | |
| tree | d680cceb76f019f4f0a25809201b3f6da3777077 /include/linux/debugobjects.h | |
| parent | net: hns3: add trace event in hclge_gen_resp_to_vf() (diff) | |
net: hns3: refactor function hclge_parse_capability()
The function hclge_parse_capability() uses too many if statement, and
it may add more in the future. To improve code readability, maintainability
and simplicity, refactor this function by using a bit mapping array of IMP
capabilities and driver capabilities.
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
