ibmvnic: compare adapter->init_done_rc with more readable ibmvnic_rc_codes
Instead of comparing (adapter->init_done_rc == 1), let it be (adapter->init_done_rc == PARTIALSUCCESS). Signed-off-by: Lijun Pan <ljp@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bf82d565bc
commit
4c5f6af051
|
@ -963,7 +963,7 @@ static int set_link_state(struct ibmvnic_adapter *adapter, u8 link_state)
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (adapter->init_done_rc == 1) {
|
||||
if (adapter->init_done_rc == PARTIALSUCCESS) {
|
||||
/* Partuial success, delay and re-send */
|
||||
mdelay(1000);
|
||||
resend = true;
|
||||
|
|
Loading…
Reference in New Issue