aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic
diff options
context:
space:
mode:
authorchongjiapeng <jiapeng.chong@linux.alibaba.com>2021-10-09 16:09:26 +0800
committerDavid S. Miller <davem@davemloft.net>2021-10-09 13:46:41 +0100
commita5a14ea7b4e55604acb0dc9d88fdb4cb6945bc77 (patch)
tree886bce9afb8fb1ba6bf512b830eca72bf9228999 /drivers/net/ethernet/qlogic
parentnet: dsa: hold rtnl_lock in dsa_switch_setup_tag_protocol (diff)
downloadlinux-dev-a5a14ea7b4e55604acb0dc9d88fdb4cb6945bc77.tar.xz
linux-dev-a5a14ea7b4e55604acb0dc9d88fdb4cb6945bc77.zip
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 <abaci@linux.alibaba.com> Fixes: d51e4af5c209 ("qed: aRFS infrastructure support") Signed-off-by: chongjiapeng <jiapeng.chong@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_main.c b/drivers/net/ethernet/qlogic/qed/qed_main.c
index 15ef59aa34ff..d10e1cd6d2ba 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;
}
}