nubus: Adopt standard linked list implementation
This increases code re-use and improves readability. Cc: "David S. Miller" <davem@davemloft.net> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:

committed by
Geert Uytterhoeven

parent
189e19e8cb
commit
41b848160e
@@ -464,9 +464,11 @@ static int mac_nubus_sonic_probe(struct net_device *dev)
|
||||
int reg_offset, dma_bitmode;
|
||||
|
||||
/* Find the first SONIC that hasn't been initialized already */
|
||||
while ((ndev = nubus_find_type(NUBUS_CAT_NETWORK,
|
||||
NUBUS_TYPE_ETHERNET, ndev)) != NULL)
|
||||
{
|
||||
for_each_func_rsrc(ndev) {
|
||||
if (ndev->category != NUBUS_CAT_NETWORK ||
|
||||
ndev->type != NUBUS_TYPE_ETHERNET)
|
||||
continue;
|
||||
|
||||
/* Have we seen it already? */
|
||||
if (slots & (1<<ndev->board->slot))
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user