Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1399923 > unrolled thread

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

Started byDaeseok Youn <daeseok.youn@gmail.com>
First post2016-05-12 13:20 +0200
Last post2016-05-12 13:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/3] staging: dgnc: remove redundant local variable for Daeseok Youn <daeseok.youn@gmail.com> - 2016-05-12 13:20 +0200

#1399923 — [PATCH 1/3] staging: dgnc: remove redundant local variable for

FromDaeseok Youn <daeseok.youn@gmail.com>
Date2016-05-12 13:20 +0200
Subject[PATCH 1/3] staging: dgnc: remove redundant local variable for
Message-ID<rxWOR-4u5-1@gated-at.bofh.it>
The local variable "bd" was not used in dgnc_carrier() function.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
---
 drivers/staging/dgnc/dgnc_tty.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index a505775..52a1613 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -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;
 
-- 
2.8.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web