projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf82d56
)
ibmvnic: compare adapter->init_done_rc with more readable ibmvnic_rc_codes
author
Lijun Pan
<ljp@linux.ibm.com>
Wed, 19 Aug 2020 22:52:23 +0000
(17:52 -0500)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ibm/ibmvnic.c
b/drivers/net/ethernet/ibm/ibmvnic.c
index 589b411617e96e883eef4293c4bd236e9c678092..4b07eb5a3958dd12c7b37af73e4736f2c9a81c85 100644
(file)
--- a/
drivers/net/ethernet/ibm/ibmvnic.c
+++ b/
drivers/net/ethernet/ibm/ibmvnic.c
@@
-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;