]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix missing error code in qed_slowpath_start()
authorchongjiapeng <jiapeng.chong@linux.alibaba.com>
Sat, 9 Oct 2021 08:09:26 +0000 (16:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Oct 2021 12:46:41 +0000 (13:46 +0100)
commit0265fe46de15a7cc1b5b5b80bfdf9cc2660af53c
tree886bce9afb8fb1ba6bf512b830eca72bf9228999
parentab449e1226399304fa4e86e566d0a351e8c89bdb
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: bffa1b5c430b ("qed: aRFS infrastructure support")
Signed-off-by: chongjiapeng <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c