Loading drivers/staging/dgap/dgap.c +43 −41 Original line number Diff line number Diff line Loading @@ -7354,13 +7354,16 @@ static struct cnode *dgap_find_config(int type, int bus, int slot) prev = p; p = p->next; if (p->type == BNODE) { if (p->type != BNODE) continue; if (p->u.board.type == type) { if (p->u.board.type != type) continue; if (p->u.board.v_pcibus && p->u.board.pcibus != bus) continue; if (p->u.board.v_pcislot && p->u.board.pcislot != slot) continue; Loading @@ -7373,7 +7376,9 @@ static struct cnode *dgap_find_config(int type, int bus, int slot) while (p->next) { prev2 = p; p = p->next; if (p->type == BNODE) { if (p->type != BNODE) continue; /* * Mark the end of our 1 board Loading @@ -7391,15 +7396,12 @@ static struct cnode *dgap_find_config(int type, int bus, int slot) return found; } } /* * It must be the last board in the list. */ prev->next = NULL; return found; } } } return NULL; } Loading Loading
drivers/staging/dgap/dgap.c +43 −41 Original line number Diff line number Diff line Loading @@ -7354,13 +7354,16 @@ static struct cnode *dgap_find_config(int type, int bus, int slot) prev = p; p = p->next; if (p->type == BNODE) { if (p->type != BNODE) continue; if (p->u.board.type == type) { if (p->u.board.type != type) continue; if (p->u.board.v_pcibus && p->u.board.pcibus != bus) continue; if (p->u.board.v_pcislot && p->u.board.pcislot != slot) continue; Loading @@ -7373,7 +7376,9 @@ static struct cnode *dgap_find_config(int type, int bus, int slot) while (p->next) { prev2 = p; p = p->next; if (p->type == BNODE) { if (p->type != BNODE) continue; /* * Mark the end of our 1 board Loading @@ -7391,15 +7396,12 @@ static struct cnode *dgap_find_config(int type, int bus, int slot) return found; } } /* * It must be the last board in the list. */ prev->next = NULL; return found; } } } return NULL; } Loading