]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ibmvnic: compare adapter->init_done_rc with more readable ibmvnic_rc_codes
authorLijun Pan <ljp@linux.ibm.com>
Wed, 19 Aug 2020 22:52:23 +0000 (17:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 23:11:33 +0000 (16:11 -0700)
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>
drivers/net/ethernet/ibm/ibmvnic.c

index 589b411617e96e883eef4293c4bd236e9c678092..4b07eb5a3958dd12c7b37af73e4736f2c9a81c85 100644 (file)
@@ -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;