From: chongjiapeng Date: Sat, 9 Oct 2021 08:09:26 +0000 (+0800) Subject: qed: Fix missing error code in qed_slowpath_start() X-Git-Tag: v5.15~92^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5a14ea7b4e55604acb0dc9d88fdb4cb6945bc77;p=platform%2Fkernel%2Flinux-starfive.git qed: Fix missing error code in qed_slowpath_start() The error code is missing in this code scenario, add the error code '-EINVAL' to the return value 'rc'. Eliminate the follow smatch warning: drivers/net/ethernet/qlogic/qed/qed_main.c:1298 qed_slowpath_start() warn: missing error code 'rc'. Reported-by: Abaci Robot Fixes: d51e4af5c209 ("qed: aRFS infrastructure support") Signed-off-by: chongjiapeng Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qed/qed_main.c b/drivers/net/ethernet/qlogic/qed/qed_main.c index 15ef59a..d10e1cd 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_main.c +++ b/drivers/net/ethernet/qlogic/qed/qed_main.c @@ -1299,6 +1299,7 @@ static int qed_slowpath_start(struct qed_dev *cdev, } else { DP_NOTICE(cdev, "Failed to acquire PTT for aRFS\n"); + rc = -EINVAL; goto err; } }