Skip to contentSkip to conversation

staging: dgnc: remove unused variables

PATCH Superseded Aastha Gupta 1 participant 2 messages Sep 16, 2017 Staging

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: dgnc: remove unused variables

This patch removes some unused variables.

---
 drivers/staging/dgnc/dgnc_driver.h | 1 -
 drivers/staging/dgnc/dgnc_neo.c    | 1 -
 2 files changed, 2 deletions(-)
drivers/staging/dgnc/dgnc_driver.h +0 -1
index 764d6fe..d69d9c0 100644
@@ -233,7 +233,6 @@ struct device;
  */
 struct un_t {
 	struct	channel_t *un_ch;
-	ulong	un_time;
 	uint	un_type;
 	uint	un_open_count;
 	struct tty_struct *un_tty;
drivers/staging/dgnc/dgnc_neo.c +0 -1
index a8491d7..0fa4267 100644
@@ -1182,7 +1182,6 @@ static int neo_drain(struct tty_struct *tty, uint seconds)
 	unsigned long flags;
 	struct channel_t *ch;
 	struct un_t *un;
-	int rc = 0;
 
 	if (!tty)
 		return -ENXIO;
Signature · 1 line
2.7.4
#1 lore raw

please ignore this patch.

Quoted 35 lines · Aastha Gupta

This patch removes some unused variables.

---
 drivers/staging/dgnc/dgnc_driver.h | 1 -
 drivers/staging/dgnc/dgnc_neo.c    | 1 -
 2 files changed, 2 deletions(-)
drivers/staging/dgnc/dgnc_driver.h +0 -1
index 764d6fe..d69d9c0 100644
@@ -233,7 +233,6 @@ struct device;
  */
 struct un_t {
        struct  channel_t *un_ch;
-       ulong   un_time;
        uint    un_type;
        uint    un_open_count;
        struct tty_struct *un_tty;
drivers/staging/dgnc/dgnc_neo.c +0 -2
index a8491d7..0fa4267 100644
@@ -1182,7 +1182,6 @@ static int neo_drain(struct tty_struct *tty, uint seconds)
        unsigned long flags;
        struct channel_t *ch;
        struct un_t *un;
-       int rc = 0;
 
        if (!tty)
                return -ENXIO;
--

2.7.4