aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorGuangbin Huang <[email protected]>2021-08-28 06:55:16 +0000
committerDavid S. Miller <[email protected]>2021-08-28 10:20:05 +0000
commite1d93bc6ef3bf497675f9ac2b35b79c48577b970 (patch)
treed680cceb76f019f4f0a25809201b3f6da3777077 /net/unix/af_unix.c
parentnet: hns3: add trace event in hclge_gen_resp_to_vf() (diff)
downloadkernel-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