Skip to contentSkip to conversation

staging: dgnc: remove useless variables

PATCH RESEND New Daeseok Youn 1 participant 1 message Sep 26, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
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
index 747a100..8792026 100644
@@ -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