aboutsummaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorYunsheng Lin <[email protected]>2019-02-02 22:39:29 +0800
committerDavid S. Miller <[email protected]>2019-02-02 08:24:08 -0800
commit8ca754b13f3c3b99d946665385b3b76e66aab96d (patch)
tree2c44febe56a1f593525d201632d42e5ec90f5b04 /scripts/const_structs.checkpatch
parent1731be4c73bb4d5bbfb4b15aaab3f183ccba6fe6 (diff)
net: hns3: code optimization for hclge_rx_buffer_calc
There are four steps to calcuate the rx private buffer, each step can be done in a function to avoid code duplication and aid code readability. This patch adds three separate functions do the job. Also, the function name more or less make the comment redundant, so remove some obvious comment. Signed-off-by: Yunsheng Lin <[email protected]> Signed-off-by: Peng Li <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions