Skip to contentSkip to conversation

serial_cs: remove noop

RFC New Dominik Brodowski 1 participant 1 message Oct 17, 2009 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

RFC 1/1 serial_cs: remove noop

From: Dominik Brodowski <[email protected]>
Date: Sat, 17 Oct 2009 18:19:34 +0200
Subject: [PATCH 4/5] serial_cs: remove noop

In the only case "tuple" is used afterwards, tuple->DesiredTuple is explicitely set to CISTPL_CFTABLE_ENTRY. Therefore, remove useless assignments to other values.

---
 drivers/serial/serial_cs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/serial/serial_cs.c +0 -2
index ff4617e..47162d9 100644
@@ -715,7 +715,6 @@ static int serial_config(struct pcmcia_device * link)
 	info->multi = (first_tuple(link, tuple, parse) == 0);
 
 	/* Is this a multiport card? */
-	tuple->DesiredTuple = CISTPL_MANFID;
 	info->manfid = link->manf_id;
 	info->prodid = link->card_id;
 
@@ -730,7 +729,6 @@ static int serial_config(struct pcmcia_device * link)
 
 	/* Another check for dual-serial cards: look for either serial or
 	   multifunction cards that ask for appropriate IO port ranges */
-	tuple->DesiredTuple = CISTPL_FUNCID;
 	if ((info->multi == 0) &&
 	    (link->has_func_id) &&
 	    ((link->func_id == CISTPL_FUNCID_MULTI) ||
Signature · 1 line
1.6.0.4