net: qed_dev: fix check of true !rc expression
authorJean Sacren <sakiwit@gmail.com>
Sat, 23 Oct 2021 09:26:15 +0000 (03:26 -0600)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Oct 2021 02:11:13 +0000 (19:11 -0700)
Remove the check of !rc in (!rc && !resc_lock_params.b_granted) since it
is always true.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/qlogic/qed/qed_dev.c

index 18f3bf7c4dfe601518a4676380e37d3c3a0906a7..cc4ec2bb36db016ca448d2d5f79047e72d7b010f 100644 (file)
@@ -3992,7 +3992,7 @@ static int qed_hw_get_resc(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt)
        } else if (rc == -EINVAL) {
                DP_INFO(p_hwfn,
                        "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,
                          "Failed to acquire the resource lock for the resource allocation commands\n");
                return -EBUSY;