Skip to content

Commit

Permalink
staging: dgnc: remove useless variables for saving tty's
Browse files Browse the repository at this point in the history
It doesn't need to save major number with variable.
And there are no use of these variables(dgnc_serial_major and
dgnc_transparent_print_major)

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Daeseok Youn authored and Greg Kroah-Hartman committed Mar 31, 2016
1 parent 1f2f03c commit e491e71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/dgnc/dgnc_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,6 @@ struct dgnc_board {
bool dgnc_major_serial_registered;
bool dgnc_major_transparent_print_registered;

uint dgnc_serial_major;
uint dgnc_transparent_print_major;

u16 dpatype; /* The board "type",
* as defined by DPA
*/
Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/dgnc/dgnc_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,6 @@ int dgnc_tty_register(struct dgnc_board *brd)
}

dgnc_BoardsByMajor[brd->serial_driver.major] = brd;
brd->dgnc_serial_major = brd->serial_driver.major;
brd->dgnc_transparent_print_major = brd->print_driver.major;

return rc;
}
Expand Down Expand Up @@ -409,7 +407,6 @@ void dgnc_tty_uninit(struct dgnc_board *brd)

if (brd->dgnc_major_serial_registered) {
dgnc_BoardsByMajor[brd->serial_driver.major] = NULL;
brd->dgnc_serial_major = 0;
for (i = 0; i < brd->nasync; i++) {
if (brd->channels[i])
dgnc_remove_tty_sysfs(brd->channels[i]->
Expand All @@ -422,7 +419,6 @@ void dgnc_tty_uninit(struct dgnc_board *brd)

if (brd->dgnc_major_transparent_print_registered) {
dgnc_BoardsByMajor[brd->print_driver.major] = NULL;
brd->dgnc_transparent_print_major = 0;
for (i = 0; i < brd->nasync; i++) {
if (brd->channels[i])
dgnc_remove_tty_sysfs(brd->channels[i]->
Expand Down

0 comments on commit e491e71

Please sign in to comment.