staging: dgnc: delete dpatype board type variable.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2018 20:00:02 +0000 (21:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 14:02:56 +0000 (15:02 +0100)
It was only set, and never looked at, so drop the thing as no one cares
about it.

Cc: Lidza Louina <lidza.louina@gmail.com>
Cc: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c
drivers/staging/dgnc/dgnc_driver.h
drivers/staging/dgnc/digi.h

index 1174aeb209a9a95ff63776573e23e316693a3b18..172f4fe67489e4a97db0ddf60cb1862a517df637 100644 (file)
@@ -115,9 +115,6 @@ static struct dgnc_board *dgnc_found_board(struct pci_dev *pdev, int id)
        case PCI_DEVICE_CLASSIC_8_DID:
        case PCI_DEVICE_CLASSIC_4_422_DID:
        case PCI_DEVICE_CLASSIC_8_422_DID:
-
-               brd->dpatype = T_CLASSIC | T_PCIBUS;
-
                /*
                 * For PCI ClassicBoards
                 * PCI Local Address (i.e. "resource" number) space
index b71e6d1d4ec4af311e9c3fcc8d87cbb12ca7ce51..6c6d7c5df5e133538c3e32aa860353f690da5498 100644 (file)
@@ -126,7 +126,6 @@ struct board_ops {
  * @serial_name: Serial driver name.
  * @print_dirver: Pointer to the print driver.
  * @print_name: Print driver name.
- * @dpatype: Board type as defined by DPA.
  * @dpastatus: Board status as defined by DPA.
  * @bd_dividend: Board/UART's specific dividend.
  * @bd_ops: Pointer to board operations structure.
@@ -180,7 +179,6 @@ struct dgnc_board {
        struct tty_driver *print_driver;
        char            print_name[200];
 
-       u16             dpatype;
        u16             dpastatus;
 
        uint            bd_dividend;
index 6a09bd32e349f03e8e23eb62ade08d5d09fcc9b4..80b0339f33d746f506e5d0c61a6aab5003580114 100644 (file)
@@ -127,11 +127,6 @@ struct ni_info {
        unsigned int baud;
 };
 
-#define T_CLASSIC 0002
-#define T_PCIBUS 0400
-#define T_NEO_EXPRESS 0001
-#define T_NEO 0000
-
 #define TTY_FLIPBUF_SIZE 512
 
 #endif /* _DIGI_H */