]> git.baikalelectronics.ru Git - kernel.git/commit
sunhme: Return an ERR_PTR from quattro_pci_find
authorSean Anderson <seanga2@gmail.com>
Sat, 24 Sep 2022 01:53:30 +0000 (21:53 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Sep 2022 00:45:36 +0000 (17:45 -0700)
commitd6f1e89bdbb87365adcf16dfca40cdef6726d616
tree155e1c3b10674fa17a573aa60b2c81f09f40d660
parentacb3f35f920b532a22cafc10a0f78827b2d238f5
sunhme: Return an ERR_PTR from quattro_pci_find

In order to differentiate between a missing bridge and an OOM condition,
return ERR_PTRs from quattro_pci_find. This also does some general linting
in the area.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sun/sunhme.c