staging: dgap: get rid of brd->firstminor because it is 0
firstminor in struct borad_t is always zero, so it can be removed. Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c7873665bb
commit
219a40d099
|
@ -684,7 +684,6 @@ static int dgap_found_board(struct pci_dev *pdev, int id, int boardnum)
|
|||
/* store the info for the board we've found */
|
||||
brd->magic = DGAP_BOARD_MAGIC;
|
||||
brd->boardnum = boardnum;
|
||||
brd->firstminor = 0;
|
||||
brd->vendor = dgap_pci_tbl[id].vendor;
|
||||
brd->device = dgap_pci_tbl[id].device;
|
||||
brd->pdev = pdev;
|
||||
|
@ -4169,7 +4168,7 @@ static int dgap_tty_register_ports(struct board_t *brd)
|
|||
|
||||
classp = tty_port_register_device(&brd->serial_ports[i],
|
||||
brd->serial_driver,
|
||||
brd->firstminor + i, NULL);
|
||||
i, NULL);
|
||||
|
||||
if (IS_ERR(classp)) {
|
||||
ret = PTR_ERR(classp);
|
||||
|
@ -4181,7 +4180,7 @@ static int dgap_tty_register_ports(struct board_t *brd)
|
|||
|
||||
classp = tty_port_register_device(&brd->printer_ports[i],
|
||||
brd->print_driver,
|
||||
brd->firstminor + i, NULL);
|
||||
i, NULL);
|
||||
|
||||
if (IS_ERR(classp)) {
|
||||
ret = PTR_ERR(classp);
|
||||
|
|
|
@ -529,7 +529,6 @@ struct macounter {
|
|||
struct board_t {
|
||||
int magic; /* Board Magic number. */
|
||||
int boardnum; /* Board number: 0-3 */
|
||||
int firstminor; /* First minor, e.g. 0, 30, 60 */
|
||||
|
||||
int type; /* Type of board */
|
||||
char *name; /* Product Name */
|
||||
|
|
Loading…
Reference in New Issue