Skip to content

Commit b2e78c2

Browse files
Mark Hounschellgregkh
authored andcommitted
staging: dgap: remove unused brd->state states
This patch removes unused brd->state states previously used in the userland firmware download process. Signed-off-by: Mark Hounschell <markh@compro.net> Tested-by: Mark Hounschell <markh@compro.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 74f71e7 commit b2e78c2

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

‎drivers/staging/dgap/dgap.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,6 @@ static int dgap_found_board(struct pci_dev *pdev, int id)
745745

746746
spin_lock_init(&brd->bd_lock);
747747

748-
brd->state = BOARD_FOUND;
749748
brd->runwait = 0;
750749
brd->inhibit_poller = FALSE;
751750
brd->wait_for_bios = 0;
@@ -820,8 +819,6 @@ static int dgap_found_board(struct pci_dev *pdev, int id)
820819
i = dgap_do_remap(brd);
821820
if (i)
822821
brd->state = BOARD_FAILED;
823-
else
824-
brd->state = NEED_RESET;
825822

826823
return 0;
827824
}
@@ -4550,8 +4547,6 @@ static void dgap_do_reset_board(struct board_t *brd)
45504547
return;
45514548
}
45524549

4553-
if (brd->state != BOARD_FAILED)
4554-
brd->state = FINISHED_RESET;
45554550
}
45564551

45574552
#ifdef DIGI_CONCENTRATORS_SUPPORTED

‎drivers/staging/dgap/dgap.h‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -487,25 +487,8 @@ enum {
487487
*/
488488
enum {
489489
BOARD_FAILED = 0,
490-
CONFIG_NOT_FOUND,
491-
BOARD_FOUND,
492-
NEED_RESET,
493-
FINISHED_RESET,
494-
NEED_CONFIG,
495-
FINISHED_CONFIG,
496-
NEED_DEVICE_CREATION,
497-
REQUESTED_DEVICE_CREATION,
498-
FINISHED_DEVICE_CREATION,
499-
NEED_BIOS_LOAD,
500-
REQUESTED_BIOS,
501-
WAIT_BIOS_LOAD,
502490
FINISHED_BIOS_LOAD,
503-
NEED_FEP_LOAD,
504-
REQUESTED_FEP,
505-
WAIT_FEP_LOAD,
506491
FINISHED_FEP_LOAD,
507-
NEED_PROC_CREATION,
508-
FINISHED_PROC_CREATION,
509492
BOARD_READY
510493
};
511494

0 commit comments

Comments
 (0)