staging: dgnc: remove useless variables
Subsystems (2)
PATCH RESEND 10/11 staging: dgnc: remove useless variables
The dgnc_major_serial_registered and dgnc_major_serial_registered do not need to use to check whether the tty driver is registered or not. These variables are used only in dgnc_cleanup_tty() function, This function will be called normally with initialized board structure. It means the dgnc_cleanup_tty() cannot be called with unregistered tty.
Signed-off-by Daeseok Youn <[email protected]>
---
RESEND: send the whole series again. Because I missed some patches when the V2 patches sent.
drivers/staging/dgnc/dgnc_driver.h | 3 -- drivers/staging/dgnc/dgnc_tty.c | 64 +++++++++++++++----------------------- 2 files changed, 25 insertions(+), 42 deletions(-)
drivers/staging/dgnc/dgnc_driver.h +0 -3
@@ -203,9 +203,6 @@ struct dgnc_board {struct tty_driver *print_driver;char print_name[200 ]; -bool dgnc_major_serial_registered; -bool dgnc_major_transparent_print_registered; -u16 dpatype;/* The board "type", * as defined by DPA */
drivers/staging/dgnc/dgnc_tty.c +25 -39
85 lines not on this page · raw message
Signature · 1 line
1.9.1