diff options
| author | Guangbin Huang <[email protected]> | 2021-08-28 06:55:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-08-28 10:20:05 +0000 |
| commit | e1d93bc6ef3bf497675f9ac2b35b79c48577b970 (patch) | |
| tree | d680cceb76f019f4f0a25809201b3f6da3777077 /net/unix/af_unix.c | |
| parent | net: hns3: add trace event in hclge_gen_resp_to_vf() (diff) | |
| download | kernel-e1d93bc6ef3bf497675f9ac2b35b79c48577b970.tar.gz kernel-e1d93bc6ef3bf497675f9ac2b35b79c48577b970.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
