Commit 036f590f authored by Jean Sacren's avatar Jean Sacren Committed by Jakub Kicinski

net: qed_dev: fix check of true !rc expression

Remove the check of !rc in (!rc && !resc_lock_params.b_granted) since it
is always true.
Signed-off-by: default avatarJean Sacren <sakiwit@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 165f8e82
...@@ -3992,7 +3992,7 @@ static int qed_hw_get_resc(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) ...@@ -3992,7 +3992,7 @@ static int qed_hw_get_resc(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt)
} else if (rc == -EINVAL) { } else if (rc == -EINVAL) {
DP_INFO(p_hwfn, DP_INFO(p_hwfn,
"Skip the max values setting of the soft resources since the resource lock is not supported by the MFW\n"); "Skip the max values setting of the soft resources since the resource lock is not supported by the MFW\n");
} else if (!rc && !resc_lock_params.b_granted) { } else if (!resc_lock_params.b_granted) {
DP_NOTICE(p_hwfn, DP_NOTICE(p_hwfn,
"Failed to acquire the resource lock for the resource allocation commands\n"); "Failed to acquire the resource lock for the resource allocation commands\n");
return -EBUSY; return -EBUSY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment