Skip to contentSkip to conversation

staging: dgnc: remove redundant local variable for

PATCH New Daeseok Youn 1 participant 1 message May 12, 2016

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

PATCH 1/3 staging: dgnc: remove redundant local variable for

The local variable "bd" was not used in dgnc_carrier() function.

---
 drivers/staging/dgnc/dgnc_tty.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/staging/dgnc/dgnc_tty.c +0 -7
index a505775..52a1613 100644
@@ -640,19 +640,12 @@ exit_unlock:
  ************************************************************************/
 void dgnc_carrier(struct channel_t *ch)
 {
-	struct dgnc_board *bd;
-
 	int virt_carrier = 0;
 	int phys_carrier = 0;
 
 	if (!ch || ch->magic != DGNC_CHANNEL_MAGIC)
 		return;
 
-	bd = ch->ch_bd;
-
-	if (!bd || bd->magic != DGNC_BOARD_MAGIC)
-		return;
-
 	if (ch->ch_mistat & UART_MSR_DCD)
 		phys_carrier = 1;
 
Signature · 1 line
2.8.2