提交 a5a14ea7 编写于 作者: C chongjiapeng 提交者: David S. Miller

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: NAbaci Robot <abaci@linux.alibaba.com>
Fixes: d51e4af5 ("qed: aRFS infrastructure support")
Signed-off-by: Nchongjiapeng <jiapeng.chong@linux.alibaba.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1951b3f1
...@@ -1299,6 +1299,7 @@ static int qed_slowpath_start(struct qed_dev *cdev, ...@@ -1299,6 +1299,7 @@ static int qed_slowpath_start(struct qed_dev *cdev,
} else { } else {
DP_NOTICE(cdev, DP_NOTICE(cdev,
"Failed to acquire PTT for aRFS\n"); "Failed to acquire PTT for aRFS\n");
rc = -EINVAL;
goto err; goto err;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册