Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/net/skfp: Remove dead code referencing pci_find_device()

Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by

Jeff Garzik and committed by
David S. Miller
a967b140 bbfb86c5

-45
-40
drivers/net/skfp/drvfbi.c
··· 537 537 } 538 538 #endif /* MULT_OEM */ 539 539 540 - #ifdef PCI 541 - #ifdef USE_BIOS_FUN 542 - int exist_board(struct s_smc *smc, int slot) 543 - { 544 - u_short dev_id ; 545 - u_short ven_id ; 546 - int found ; 547 - int i ; 548 - 549 - found = FALSE ; /* make sure we returned with adatper not found*/ 550 - /* if an empty oemids.h was included */ 551 - 552 - #ifdef MULT_OEM 553 - smc->hw.oem_id = (struct s_oem_ids *) &oem_ids[0] ; 554 - for (; smc->hw.oem_id->oi_status != OI_STAT_LAST; smc->hw.oem_id++) { 555 - if (smc->hw.oem_id->oi_status < smc->hw.oem_min_status) 556 - continue ; 557 - #endif 558 - ven_id = OEMID(smc,0) + (OEMID(smc,1) << 8) ; 559 - dev_id = OEMID(smc,2) + (OEMID(smc,3) << 8) ; 560 - for (i = 0; i < slot; i++) { 561 - if (pci_find_device(i,&smc->hw.pci_handle, 562 - dev_id,ven_id) != 0) { 563 - 564 - found = FALSE ; 565 - } else { 566 - found = TRUE ; 567 - } 568 - } 569 - if (found) { 570 - return(1) ; /* adapter was found */ 571 - } 572 - #ifdef MULT_OEM 573 - } 574 - #endif 575 - return(0) ; /* adapter was not found */ 576 - } 577 - #endif /* PCI */ 578 - #endif /* USE_BIOS_FUNC */ 579 - 580 540 void driver_get_bia(struct s_smc *smc, struct fddi_addr *bia_addr) 581 541 { 582 542 int i ;
-5
drivers/net/skfp/h/skfbi.h
··· 15 15 #ifndef _SKFBI_H_ 16 16 #define _SKFBI_H_ 17 17 18 - #ifdef SYNC 19 - #define exist_board_far exist_board 20 - #define get_board_para_far get_board_para 21 - #endif 22 - 23 18 /* 24 19 * FDDI-Fx (x := {I(SA), P(CI)}) 25 20 * address calculation & function defines