qlcnic: Fix error code in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Dec 2020 08:38:04 +0000 (11:38 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Dec 2020 18:53:33 +0000 (10:53 -0800)
commit0d52848632a357948028eab67ff9b7cc0c12a0fb
tree78fe895b4aab3f5f568216f6545d0b62aa2bbff8
parent86eb09b63da419a7261d7dc96e60fdb0e56e341d
qlcnic: Fix error code in probe

Return -EINVAL if we can't find the correct device.  Currently it
returns success.

Fixes: 13159183ec7a ("qlcnic: 83xx base driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X9nHbMqEyI/xPfGd@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c