staging: dgap: remove unused brd->state states
authorMark Hounschell <markh@compro.net>
Wed, 12 Mar 2014 16:50:54 +0000 (12:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:35:43 +0000 (14:35 -0700)
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>
drivers/staging/dgap/dgap.c
drivers/staging/dgap/dgap.h

index 2fe949996cd164e30027f5f7798dca445603e04f..c2b2d8fce34951a17f6bc9e318c17b04e21c5566 100644 (file)
@@ -745,7 +745,6 @@ static int dgap_found_board(struct pci_dev *pdev, int id)
 
        spin_lock_init(&brd->bd_lock);
 
-       brd->state              = BOARD_FOUND;
        brd->runwait            = 0;
        brd->inhibit_poller     = FALSE;
        brd->wait_for_bios      = 0;
@@ -820,8 +819,6 @@ static int dgap_found_board(struct pci_dev *pdev, int id)
        i = dgap_do_remap(brd);
        if (i)
                brd->state = BOARD_FAILED;
-       else
-               brd->state = NEED_RESET;
 
        return 0;
 }
@@ -4550,8 +4547,6 @@ static void dgap_do_reset_board(struct board_t *brd)
                return;
        }
 
-       if (brd->state != BOARD_FAILED)
-               brd->state = FINISHED_RESET;
 }
 
 #ifdef DIGI_CONCENTRATORS_SUPPORTED
index a6738f10573250bea02f3be073a1dc170f53a7c3..02d267f87d027c0a0fdf93b40b36d72614c1a4fe 100644 (file)
@@ -487,25 +487,8 @@ enum {
  */
 enum {
        BOARD_FAILED = 0,
-       CONFIG_NOT_FOUND,
-       BOARD_FOUND,
-       NEED_RESET,
-       FINISHED_RESET,
-       NEED_CONFIG,
-       FINISHED_CONFIG,
-       NEED_DEVICE_CREATION,
-       REQUESTED_DEVICE_CREATION,
-       FINISHED_DEVICE_CREATION,
-       NEED_BIOS_LOAD,
-       REQUESTED_BIOS,
-       WAIT_BIOS_LOAD,
        FINISHED_BIOS_LOAD,
-       NEED_FEP_LOAD,
-       REQUESTED_FEP,
-       WAIT_FEP_LOAD,
        FINISHED_FEP_LOAD,
-       NEED_PROC_CREATION,
-       FINISHED_PROC_CREATION,
        BOARD_READY
 };