net: sunhme: Fix uninitialized return code
authorSean Anderson <seanga2@gmail.com>
Fri, 24 Mar 2023 17:51:27 +0000 (13:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Mar 2023 07:41:56 +0000 (08:41 +0100)
commitd61157414d0a591d10d27d0ce5873916614e5e31
tree2d205be7e35e65f25a738fd999496598a5c7ead7
parent6595d358c55360e3992f06bcb8ef627a424f3fe2
net: sunhme: Fix uninitialized return code

Fix an uninitialized return code if we never found a qfe slot. It would be
a bug if we ever got into this situation, but it's good to return something
tracable.

Fixes: acb3f35f920b ("sunhme: forward the error code from pci_enable_device()")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunhme.c