summaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-08-01 06:55:40 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-01 20:32:13 +0300
commitb6872fd361056f3bce3e9fcfe9535c4b6b737531 (patch)
treeb28dd2a61c919db686a8d88fcd61835c4c02200f /lib/pm-notifier-error-inject.c
parenta4ee7624c003cc73a2eac9d9d5317b0c9fed89c4 (diff)
downloadlinux-b6872fd361056f3bce3e9fcfe9535c4b6b737531.tar.xz
net: hns3: minior error handling change for hclge_tm_schd_info_init
When hclge_tm_schd_info_update calls hclge_tm_schd_info_init to initialize the schedule info, hdev->tm_info.num_pg and hdev->tx_sch_mode is not changed, which makes the checking in hclge_tm_schd_info_init unnecessary. So this patch moves the hdev->tm_info.num_pg and hdev->tx_sch_mode checking into hclge_tm_schd_init and changes the return type of hclge_tm_schd_info_init from int to void. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Reviewed-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 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions