summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-02-02 22:39:29 +0800
committerDavid S. Miller <davem@davemloft.net>2019-02-02 08:24:08 -0800
commit8ca754b13f3c3b99d946665385b3b76e66aab96d (patch)
tree2c44febe56a1f593525d201632d42e5ec90f5b04 /drivers/hwmon/pmbus
parent1731be4c73bb4d5bbfb4b15aaab3f183ccba6fe6 (diff)
downloadlinux-8ca754b13f3c3b99d946665385b3b76e66aab96d.tar.bz2
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 <linyunsheng@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hwmon/pmbus')
0 files changed, 0 insertions, 0 deletions