Commit 41adb38e authored by Junxian Huang's avatar Junxian Huang Committed by ZhouJuan
Browse files

RDMA/hns: Delete a useless assignment to bond_state

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6Z4E9



---------------------------------------------------------------

In hns_roce_slave_dec(), bond_state will be changed to
HNS_ROCE_BOND_REGISTERING right before the current main_hr_dev
is being removed from bond group. When the slave decrease
operation is over, bond_state will be changed to
HNS_ROCE_BOND_IS_BONDED in the end of this function. So the
assignment to bond_state in the beginning of the function is
useless and should be deleted.

Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
parent 82ee5d30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment