summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-12-07 11:24:16 +0300
committerJakub Kicinski <kuba@kernel.org>2021-12-07 10:37:10 -0800
commitd17b9737c2bc09b4ac6caf469826e5a7ce3ffab7 (patch)
tree78000e0e6e7eaa44c44ad353bccbe759d796d55c /tools/testing/selftests/net
parent2a62df3692716b051be4514d60c190559256fb06 (diff)
net/qla3xxx: fix an error code in ql_adapter_up()
The ql_wait_for_drvr_lock() fails and returns false, then this function should return an error code instead of returning success. The other problem is that the success path prints an error message netdev_err(ndev, "Releasing driver lock\n"); Delete that and re-order the code a little to make it more clear. Fixes: 5a4faa873782 ("[PATCH] qla3xxx NIC driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20211207082416.GA16110@kili Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net')
0 files changed, 0 insertions, 0 deletions