[PATCH 08/08] staging: dgap: Fix white space errors as reported by checkpatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes white space errors in dgap.c
as reported by checkpatch. It also changes
unnecessary mutliple empty lines with a single
empty line

Signed-off-by: Mark Hounschell <markh@xxxxxxxxxx>
---
 drivers/staging/dgap/dgap.c | 314 ++++++++++++--------------------------------
 1 file changed, 86 insertions(+), 228 deletions(-)

diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index b3f8c49..bbe60c7 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -102,17 +102,17 @@ PARM_INT(rawreadok,	1,		0644,	"Bypass flip buffers on input");
  *
  */
 
-static int		dgap_start(void);
-static void		dgap_init_globals(void);
-static int		dgap_found_board(struct pci_dev *pdev, int id);
-static void		dgap_cleanup_board(struct board_t *brd);
-static void		dgap_poll_handler(ulong dummy);
-static int		dgap_init_pci(void);
-static int		dgap_init_one(struct pci_dev *pdev, const struct pci_device_id *ent);
-static void		dgap_remove_one(struct pci_dev *dev);
-static int		dgap_probe1(struct pci_dev *pdev, int card_type);
-static int		dgap_do_remap(struct board_t *brd);
-static irqreturn_t	dgap_intr(int irq, void *voidbrd);
+static int dgap_start(void);
+static void dgap_init_globals(void);
+static int dgap_found_board(struct pci_dev *pdev, int id);
+static void dgap_cleanup_board(struct board_t *brd);
+static void dgap_poll_handler(ulong dummy);
+static int dgap_init_pci(void);
+static int dgap_init_one(struct pci_dev *pdev, const struct pci_device_id *ent);
+static void dgap_remove_one(struct pci_dev *dev);
+static int dgap_probe1(struct pci_dev *pdev, int card_type);
+static int dgap_do_remap(struct board_t *brd);
+static irqreturn_t dgap_intr(int irq, void *voidbrd);
 
 /* Our function prototypes */
 static int dgap_tty_open(struct tty_struct *tty, struct file *file);
@@ -146,13 +146,13 @@ static void dgap_tty_set_termios(struct tty_struct *tty, struct ktermios *old_te
 static int dgap_tty_put_char(struct tty_struct *tty, unsigned char c);
 static void dgap_tty_send_xchar(struct tty_struct *tty, char ch);
 
-static int	dgap_tty_register(struct board_t *brd);
-static int	dgap_tty_preinit(void);
-static int     dgap_tty_init(struct board_t *);
-static void	dgap_tty_post_uninit(void);
-static void	dgap_tty_uninit(struct board_t *);
-static void	dgap_carrier(struct channel_t *ch);
-static void	dgap_input(struct channel_t *ch);
+static int dgap_tty_register(struct board_t *brd);
+static int dgap_tty_preinit(void);
+static int dgap_tty_init(struct board_t *);
+static void dgap_tty_post_uninit(void);
+static void dgap_tty_uninit(struct board_t *);
+static void dgap_carrier(struct channel_t *ch);
+static void dgap_input(struct channel_t *ch);
 
 /*
  * Our function prototypes from dgap_fep5
@@ -207,14 +207,14 @@ static char *dgap_create_config_string(struct board_t *bd, char *string);
 static uint dgap_config_get_useintr(struct board_t *bd);
 static uint dgap_config_get_altpin(struct board_t *bd);
 
-static int	dgap_ms_sleep(ulong ms);
-static void	dgap_do_bios_load(struct board_t *brd, uchar __user *ubios, int len);
-static void	dgap_do_fep_load(struct board_t *brd, uchar __user *ufep, int len);
+static int dgap_ms_sleep(ulong ms);
+static void dgap_do_bios_load(struct board_t *brd, uchar __user *ubios, int len);
+static void dgap_do_fep_load(struct board_t *brd, uchar __user *ufep, int len);
 #ifdef DIGI_CONCENTRATORS_SUPPORTED
-static void	dgap_do_conc_load(struct board_t *brd, uchar *uaddr, int len);
+static void dgap_do_conc_load(struct board_t *brd, uchar *uaddr, int len);
 #endif
-static int	dgap_after_config_loaded(int board);
-static int	dgap_finalize_board_init(struct board_t *brd);
+static int dgap_after_config_loaded(int board);
+static int dgap_finalize_board_init(struct board_t *brd);
 
 static void dgap_get_vpd(struct board_t *brd);
 static void dgap_do_reset_board(struct board_t *brd);
@@ -230,7 +230,6 @@ static void dgap_cleanup_module(void);
 module_init(dgap_init_module);
 module_exit(dgap_cleanup_module);
 
-
 /*
  * File operations permitted on Control/Management major.
  */
@@ -238,31 +237,30 @@ static const struct file_operations DgapBoardFops = {
 	.owner	= THIS_MODULE,
 };
 
-
 /*
  * Globals
  */
-static uint			dgap_NumBoards;
-static struct board_t		*dgap_Board[MAXBOARDS];
+static uint dgap_NumBoards;
+static struct board_t *dgap_Board[MAXBOARDS];
 DEFINE_SPINLOCK(dgap_global_lock);
-static ulong			dgap_poll_counter;
-static char			*dgap_config_buf;
-static int			dgap_driver_state = DRIVER_INITIALIZED;
+static ulong dgap_poll_counter;
+static char *dgap_config_buf;
+static int dgap_driver_state = DRIVER_INITIALIZED;
 DEFINE_SPINLOCK(dgap_dl_lock);
-static wait_queue_head_t	dgap_dl_wait;
-static int			dgap_dl_action;
-static int			dgap_poll_tick = 20;	/* Poll interval - 20 ms */
+static wait_queue_head_t dgap_dl_wait;
+static int dgap_dl_action;
+static int dgap_poll_tick = 20;	/* Poll interval - 20 ms */
 
 /*
  * Static vars.
  */
-static int		dgap_Major_Control_Registered = FALSE;
-static uint		dgap_driver_start = FALSE;
+static int dgap_Major_Control_Registered = FALSE;
+static uint dgap_driver_start = FALSE;
 
-static struct class *	dgap_class;
+static struct class *dgap_class;
 
-static struct board_t	*dgap_BoardsByMajor[256];
-static uchar		*dgap_TmpWriteBuf = NULL;
+static struct board_t *dgap_BoardsByMajor[256];
+static uchar *dgap_TmpWriteBuf = NULL;
 DECLARE_MUTEX(dgap_TmpWriteSem);
 static uint dgap_count = 500;
 
@@ -270,8 +268,8 @@ static uint dgap_count = 500;
  * Poller stuff
  */
 DEFINE_SPINLOCK(dgap_poll_lock);	/* Poll scheduling lock */
-static ulong		dgap_poll_time;				/* Time of next poll */
-static uint		dgap_poll_stop;				/* Used to tell poller to stop */
+static ulong dgap_poll_time;		/* Time of next poll */
+static uint dgap_poll_stop;		/* Used to tell poller to stop */
 static struct timer_list dgap_poll_timer;
 
 /*
@@ -313,7 +311,6 @@ static struct pci_device_id dgap_pci_tbl[] = {
 };
 MODULE_DEVICE_TABLE(pci, dgap_pci_tbl);
 
-
 /*
  * A generic list of Product names, PCI Vendor ID, and PCI Device ID.
  */
@@ -380,7 +377,6 @@ static struct firmware_info fw_info[] = {
 	{0,}
 };
 
-
 static char *dgap_driver_state_text[] = {
 	"Driver Initialized",
 	"Driver needs configuration load.",
@@ -403,7 +399,6 @@ static struct digi_t dgap_digi_init = {
 	.digi_term =	"ansi"		/* default terminal type	*/
 };
 
-
 /*
  * Define a local default termios struct. All ports will be created
  * with this termios initially.
@@ -558,7 +553,6 @@ static int dgap_init_module(void)
 	return rc;
 }
 
-
 /*
  * Start of driver.
  */
@@ -626,7 +620,6 @@ static int dgap_start(void)
 	return rc;
 }
 
-
 /*
  * Register pci driver, and return how many boards we have.
  */
@@ -635,7 +628,6 @@ static int dgap_init_pci(void)
 	return pci_register_driver(&dgap_driver);
 }
 
-
 /* returns count (>= 0), or negative on error */
 static int dgap_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 {
@@ -656,19 +648,16 @@ static int dgap_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	return rc;
 }
 
-
 static int dgap_probe1(struct pci_dev *pdev, int card_type)
 {
 	return dgap_found_board(pdev, card_type);
 }
 
-
 static void dgap_remove_one(struct pci_dev *dev)
 {
 	/* Do Nothing */
 }
 
-
 /*
  * dgap_cleanup_module()
  *
@@ -684,7 +673,7 @@ static void dgap_cleanup_module(void)
 	DGAP_UNLOCK(dgap_poll_lock, lock_flags);
 
 	/* Turn off poller right away. */
-	del_timer_sync( &dgap_poll_timer);
+	del_timer_sync(&dgap_poll_timer);
 
 	dgap_remove_driver_sysfiles(&dgap_driver);
 
@@ -714,7 +703,6 @@ static void dgap_cleanup_module(void)
 		pci_unregister_driver(&dgap_driver);
 }
 
-
 /*
  * dgap_cleanup_board()
  *
@@ -771,7 +759,6 @@ static void dgap_cleanup_board(struct board_t *brd)
 	kfree(brd);
 }
 
-
 /*
  * dgap_found_board()
  *
@@ -793,7 +780,7 @@ static int dgap_found_board(struct pci_dev *pdev, int id)
 	/* make a temporary message buffer for the boot messages */
 	brd->msgbuf = brd->msgbuf_head =
 		(char *) kzalloc(sizeof(char) * 8192, GFP_KERNEL);
-	if(!brd->msgbuf) {
+	if (!brd->msgbuf) {
 		kfree(brd);
 		return -ENOMEM;
 	}
@@ -863,7 +850,6 @@ static int dgap_found_board(struct pci_dev *pdev, int id)
 	brd->port = brd->membase + PCI_IO_OFFSET;
 	brd->port_end = brd->port + PCI_IO_SIZE;
 
-
 	/*
 	 * Special initialization for non-PLX boards
 	 */
@@ -907,7 +893,6 @@ static int dgap_found_board(struct pci_dev *pdev, int id)
 
 static int dgap_finalize_board_init(struct board_t *brd)
 {
-
 	int rc;
 
 	if (!brd || brd->magic != DGAP_BOARD_MAGIC)
@@ -1111,7 +1096,6 @@ static int dgap_do_remap(struct board_t *brd)
 	return 0;
 }
 
-
 /*****************************************************************************
 *
 * Function:
@@ -1147,7 +1131,6 @@ static void dgap_poll_handler(ulong dummy)
 
 	dgap_poll_counter++;
 
-
 	/*
 	 * Do not start the board state machine until
 	 * driver tells us its up and running, and has
@@ -1162,7 +1145,7 @@ static void dgap_poll_handler(ulong dummy)
 	 * Otherwise, use our new tasklet based poller, which should
 	 * speed things up for multiple boards.
 	 */
-	if ( (dgap_NumBoards == 1) || (num_online_cpus() <= 1) ) {
+	if ((dgap_NumBoards == 1) || (num_online_cpus() <= 1)) {
 		for (i = 0; i < dgap_NumBoards; i++) {
 
 			brd = dgap_Board[i];
@@ -1211,7 +1194,7 @@ schedule_poller:
 	/*
 	 * Schedule ourself back at the nominal wakeup interval.
 	 */
-	DGAP_LOCK(dgap_poll_lock, lock_flags );
+	DGAP_LOCK(dgap_poll_lock, lock_flags);
 	dgap_poll_time +=  dgap_jiffies_from_ms(dgap_poll_tick);
 
 	new_time = dgap_poll_time - jiffies;
@@ -1222,15 +1205,12 @@ schedule_poller:
 	dgap_poll_timer.function = dgap_poll_handler;
 	dgap_poll_timer.data = 0;
 	dgap_poll_timer.expires = dgap_poll_time;
-	DGAP_UNLOCK(dgap_poll_lock, lock_flags );
+	DGAP_UNLOCK(dgap_poll_lock, lock_flags);
 
 	if (!dgap_poll_stop)
 		add_timer(&dgap_poll_timer);
 }
 
-
-
-
 /*
  * dgap_intr()
  *
@@ -1258,7 +1238,6 @@ static irqreturn_t dgap_intr(int irq, void *voidbrd)
 	return IRQ_HANDLED;
 }
 
-
 /*
  * dgap_init_globals()
  *
@@ -1275,13 +1254,12 @@ static void dgap_init_globals(void)
 	for (i = 0; i < MAXBOARDS; i++)
 		dgap_Board[i] = NULL;
 
-	init_timer( &dgap_poll_timer );
+	init_timer(&dgap_poll_timer);
 
 	init_waitqueue_head(&dgap_dl_wait);
 	dgap_dl_action = 0;
 }
 
-
 /************************************************************************
  *
  * Utility functions
@@ -1302,9 +1280,6 @@ static int dgap_ms_sleep(ulong ms)
 	return signal_pending(current);
 }
 
-
-
-
 /************************************************************************
  *
  * TTY Initialization/Cleanup Functions
@@ -1339,7 +1314,6 @@ static int dgap_tty_preinit(void)
 	return 0;
 }
 
-
 /*
  * dgap_tty_register()
  *
@@ -1425,7 +1399,6 @@ static int dgap_tty_register(struct board_t *brd)
 	return rc;
 }
 
-
 /*
  * dgap_tty_init()
  *
@@ -1591,7 +1564,6 @@ static int dgap_tty_init(struct board_t *brd)
 	return 0;
 }
 
-
 /*
  * dgap_tty_post_uninit()
  *
@@ -1603,7 +1575,6 @@ static void dgap_tty_post_uninit(void)
 	dgap_TmpWriteBuf = NULL;
 }
 
-
 /*
  * dgap_tty_uninit()
  *
@@ -1643,9 +1614,7 @@ static void dgap_tty_uninit(struct board_t *brd)
 	}
 }
 
-
 #define TMPBUFLEN (1024)
-
 /*
  * dgap_sniff - Dump data out to the "sniff" buffer if the
  * proc sniff file is opened...
@@ -1758,7 +1727,6 @@ static void dgap_sniff_nowait_nolock(struct channel_t *ch, uchar *text, uchar *b
 	} while (too_much_data);
 }
 
-
 /*=======================================================================
  *
  *      dgap_input - Process received data.
@@ -1796,7 +1764,7 @@ static void dgap_input(struct channel_t *ch)
 		return;
 
 	bd = ch->ch_bd;
-	if(!bd || bd->magic != DGAP_BOARD_MAGIC)
+	if (!bd || bd->magic != DGAP_BOARD_MAGIC)
 		return;
 
 	DGAP_LOCK(bd->bd_lock, lock_flags);
@@ -1967,7 +1935,6 @@ static void dgap_input(struct channel_t *ch)
 
 }
 
-
 /************************************************************************
  * Determines when CARRIER changes state and takes appropriate
  * action.
@@ -2082,7 +2049,6 @@ static void dgap_carrier(struct channel_t *ch)
 		ch->ch_flags &= ~CH_CD;
 }
 
-
 /************************************************************************
  *
  * TTY Entry points and helper functions
@@ -2244,7 +2210,6 @@ static int dgap_tty_open(struct tty_struct *tty, struct file *file)
 	return rc;
 }
 
-
 /*
  * dgap_block_til_ready()
  *
@@ -2374,7 +2339,6 @@ static int dgap_block_til_ready(struct tty_struct *tty, struct file *file, struc
 	return 0;
 }
 
-
 /*
  * dgap_tty_hangup()
  *
@@ -2406,8 +2370,6 @@ static void dgap_tty_hangup(struct tty_struct *tty)
 
 }
 
-
-
 /*
  * dgap_tty_close()
  *
@@ -2495,9 +2457,9 @@ static void dgap_tty_close(struct tty_struct *tty, struct file *file)
 		/*
 		 * If we have HUPCL set, lower DTR and RTS
 		 */
-		if (ch->ch_c_cflag & HUPCL ) {
+		if (ch->ch_c_cflag & HUPCL) {
 			ch->ch_mostat &= ~(D_RTS(ch)|D_DTR(ch));
-			dgap_cmdb( ch, SMODEM, 0, D_DTR(ch)|D_RTS(ch), 0 );
+			dgap_cmdb(ch, SMODEM, 0, D_DTR(ch)|D_RTS(ch), 0);
 
 			/*
 			 * Go to sleep to ensure RTS/DTR
@@ -2519,7 +2481,7 @@ static void dgap_tty_close(struct tty_struct *tty, struct file *file)
 	/*
 	 * turn off print device when closing print device.
 	 */
-	if ((un->un_type == DGAP_PRINT)  && (ch->ch_flags & CH_PRON) ) {
+	if ((un->un_type == DGAP_PRINT)  && (ch->ch_flags & CH_PRON)) {
 		dgap_wmove(ch, ch->ch_digi.digi_offstr,
 			(int) ch->ch_digi.digi_offlen);
 		ch->ch_flags &= ~CH_PRON;
@@ -2535,7 +2497,6 @@ static void dgap_tty_close(struct tty_struct *tty, struct file *file)
 	DGAP_UNLOCK(ch->ch_lock, lock_flags);
 }
 
-
 /*
  * dgap_tty_chars_in_buffer()
  *
@@ -2635,7 +2596,6 @@ static int dgap_tty_chars_in_buffer(struct tty_struct *tty)
 	return chars;
 }
 
-
 static int dgap_wait_for_drain(struct tty_struct *tty)
 {
 	struct channel_t *ch;
@@ -2690,7 +2650,6 @@ static int dgap_wait_for_drain(struct tty_struct *tty)
 	return ret;
 }
 
-
 /*
  * dgap_maxcps_room
  *
@@ -2722,7 +2681,7 @@ static int dgap_maxcps_room(struct tty_struct *tty, int bytes_available)
 	if (un->un_type != DGAP_PRINT)
 		return bytes_available;
 
-	if (ch->ch_digi.digi_maxcps > 0 && ch->ch_digi.digi_bufsize > 0 ) {
+	if (ch->ch_digi.digi_maxcps > 0 && ch->ch_digi.digi_bufsize > 0) {
 		int cps_limit = 0;
 		unsigned long current_time = jiffies;
 		unsigned long buffer_time = current_time +
@@ -2746,7 +2705,6 @@ static int dgap_maxcps_room(struct tty_struct *tty, int bytes_available)
 	return bytes_available;
 }
 
-
 static inline void dgap_set_firmware_event(struct un_t *un, unsigned int event)
 {
 	struct channel_t *ch = NULL;
@@ -2775,7 +2733,6 @@ static inline void dgap_set_firmware_event(struct un_t *un, unsigned int event)
 	}
 }
 
-
 /*
  * dgap_tty_write_room()
  *
@@ -2847,7 +2804,6 @@ static int dgap_tty_write_room(struct tty_struct *tty)
 	return ret;
 }
 
-
 /*
  * dgap_tty_put_char()
  *
@@ -2864,7 +2820,6 @@ static int dgap_tty_put_char(struct tty_struct *tty, unsigned char c)
 	return 1;
 }
 
-
 /*
  * dgap_tty_write()
  *
@@ -3037,7 +2992,6 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf, int
 		writew(head, &(bs->tx_head));
 	}
 
-
 	dgap_set_firmware_event(un, UN_LOW | UN_EMPTY);
 
 	/*
@@ -3076,8 +3030,6 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf, int
 	return count;
 }
 
-
-
 /*
  * Return modem signals to ld.
  */
@@ -3126,13 +3078,11 @@ static int dgap_tty_tiocmget(struct tty_struct *tty)
 	return result;
 }
 
-
 /*
  * dgap_tty_tiocmset()
  *
  * Set modem signals, called by ld.
  */
-
 static int dgap_tty_tiocmset(struct tty_struct *tty,
 		unsigned int set, unsigned int clear)
 {
@@ -3189,8 +3139,6 @@ static int dgap_tty_tiocmset(struct tty_struct *tty,
 	return 0;
 }
 
-
-
 /*
  * dgap_tty_send_break()
  *
@@ -3245,9 +3193,6 @@ static int dgap_tty_send_break(struct tty_struct *tty, int msec)
 	return 0;
 }
 
-
-
-
 /*
  * dgap_tty_wait_until_sent()
  *
@@ -3258,8 +3203,6 @@ static void dgap_tty_wait_until_sent(struct tty_struct *tty, int timeout)
 	dgap_wait_for_drain(tty);
 }
 
-
-
 /*
  * dgap_send_xchar()
  *
@@ -3315,9 +3258,6 @@ static void dgap_tty_send_xchar(struct tty_struct *tty, char c)
 	return;
 }
 
-
-
-
 /*
  * Return modem signals to ld.
  */
@@ -3359,7 +3299,6 @@ static int dgap_get_modem_info(struct channel_t *ch, unsigned int __user *value)
 	return rc;
 }
 
-
 /*
  * dgap_set_modem_info()
  *
@@ -3451,7 +3390,6 @@ static int dgap_set_modem_info(struct tty_struct *tty, unsigned int command, uns
 	return 0;
 }
 
-
 /*
  * dgap_tty_digigeta()
  *
@@ -3493,7 +3431,6 @@ static int dgap_tty_digigeta(struct tty_struct *tty, struct digi_t __user *retin
 	return 0;
 }
 
-
 /*
  * dgap_tty_digiseta()
  *
@@ -3563,7 +3500,6 @@ static int dgap_tty_digiseta(struct tty_struct *tty, struct digi_t __user *new_i
 	return 0;
 }
 
-
 /*
  * dgap_tty_digigetedelay()
  *
@@ -3605,7 +3541,6 @@ static int dgap_tty_digigetedelay(struct tty_struct *tty, int __user *retinfo)
 	return 0;
 }
 
-
 /*
  * dgap_tty_digisetedelay()
  *
@@ -3652,7 +3587,6 @@ static int dgap_tty_digisetedelay(struct tty_struct *tty, int __user *new_info)
 	return 0;
 }
 
-
 /*
  * dgap_tty_digigetcustombaud()
  *
@@ -3691,7 +3625,6 @@ static int dgap_tty_digigetcustombaud(struct tty_struct *tty, int __user *retinf
 	return 0;
 }
 
-
 /*
  * dgap_tty_digisetcustombaud()
  *
@@ -3741,7 +3674,6 @@ static int dgap_tty_digisetcustombaud(struct tty_struct *tty, int __user *new_in
 	return 0;
 }
 
-
 /*
  * dgap_set_termios()
  */
@@ -3785,7 +3717,6 @@ static void dgap_tty_set_termios(struct tty_struct *tty, struct ktermios *old_te
 	DGAP_UNLOCK(bd->bd_lock, lock_flags);
 }
 
-
 static void dgap_tty_throttle(struct tty_struct *tty)
 {
 	struct board_t *bd;
@@ -3822,7 +3753,6 @@ static void dgap_tty_throttle(struct tty_struct *tty)
 
 }
 
-
 static void dgap_tty_unthrottle(struct tty_struct *tty)
 {
 	struct board_t *bd;
@@ -3859,7 +3789,6 @@ static void dgap_tty_unthrottle(struct tty_struct *tty)
 	DGAP_UNLOCK(bd->bd_lock, lock_flags);
 }
 
-
 static void dgap_tty_start(struct tty_struct *tty)
 {
 	struct board_t *bd;
@@ -3893,7 +3822,6 @@ static void dgap_tty_start(struct tty_struct *tty)
 
 }
 
-
 static void dgap_tty_stop(struct tty_struct *tty)
 {
 	struct board_t *bd;
@@ -3927,7 +3855,6 @@ static void dgap_tty_stop(struct tty_struct *tty)
 
 }
 
-
 /*
  * dgap_tty_flush_chars()
  *
@@ -3973,8 +3900,6 @@ static void dgap_tty_flush_chars(struct tty_struct *tty)
 	DGAP_UNLOCK(bd->bd_lock, lock_flags);
 }
 
-
-
 /*
  * dgap_tty_flush_buffer()
  *
@@ -4027,8 +3952,6 @@ static void dgap_tty_flush_buffer(struct tty_struct *tty)
 	tty_wakeup(tty);
 }
 
-
-
 /*****************************************************************************
  *
  * The IOCTL function and all of its helpers
@@ -4111,7 +4034,6 @@ static int dgap_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
 
 		return 0;
 
-
 	case TCSBRKP:
 		/* support for POSIX tcsendbreak()
 
@@ -4246,7 +4168,7 @@ static int dgap_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
 		if ((arg == TCOFLUSH) || (arg == TCIOFLUSH)) {
 			ch->ch_flags &= ~CH_STOP;
 			head = readw(&(ch->ch_bs->tx_head));
-			dgap_cmdw(ch, FLUSHTX, (u16) head, 0 );
+			dgap_cmdw(ch, FLUSHTX, (u16) head, 0);
 			dgap_cmdw(ch, RESUMETX, 0, 0);
 			if (ch->ch_tun.un_flags & (UN_LOW|UN_EMPTY)) {
 				ch->ch_tun.un_flags &= ~(UN_LOW|UN_EMPTY);
@@ -4441,8 +4363,6 @@ static int dgap_after_config_loaded(int board)
 	return 0;
 }
 
-
-
 /*
  * Create pr and tty device entries
  */
@@ -4467,7 +4387,6 @@ static void dgap_sysfs_create(struct board_t *brd)
 	dgap_create_ports_sysfiles(brd);
 }
 
-
 /*
  * Copies the BIOS code from the user to the board,
  * and starts the BIOS running.
@@ -4502,7 +4421,6 @@ static void dgap_do_bios_load(struct board_t *brd, uchar __user *ubios, int len)
 	writeb(FEPCLR, brd->re_map_port);
 }
 
-
 /*
  * Checks to see if the BIOS completed running on the card.
  */
@@ -4545,7 +4463,6 @@ static void dgap_do_wait_for_bios(struct board_t *brd)
 	brd->dpastatus = BD_NOBIOS;
 }
 
-
 /*
  * Copies the FEP code from the user to the board,
  * and starts the FEP running.
@@ -4591,7 +4508,6 @@ static void dgap_do_fep_load(struct board_t *brd, uchar *ufep, int len)
 
 }
 
-
 /*
  * Waits for the FEP to report thats its ready for us to use.
  */
@@ -4640,7 +4556,6 @@ static void dgap_do_wait_for_fep(struct board_t *brd)
 	brd->dpastatus = BD_NOFEP;
 }
 
-
 /*
  * Physically forces the FEP5 card to reset itself.
  */
@@ -4692,7 +4607,6 @@ static void dgap_do_reset_board(struct board_t *brd)
 		brd->state = FINISHED_RESET;
 }
 
-
 #ifdef DIGI_CONCENTRATORS_SUPPORTED
 /*
  * Sends a concentrator image into the FEP5 board.
@@ -4823,7 +4737,6 @@ static void dgap_get_vpd(struct board_t *brd)
 	pci_write_config_dword(brd->pdev, PCI_ROM_ADDRESS, magic);
 }
 
-
 /*
  * Our board poller function.
  */
@@ -5039,7 +4952,6 @@ out:
 	DGAP_UNLOCK(bd->bd_lock, lock_flags);
 }
 
-
 /*=======================================================================
  *
  *      dgap_cmdb - Sends a 2 byte command to the FEP.
@@ -5126,7 +5038,6 @@ static void dgap_cmdb(struct channel_t *ch, uchar cmd, uchar byte1, uchar byte2,
 	}
 }
 
-
 /*=======================================================================
  *
  *      dgap_cmdw - Sends a 1 word command to the FEP.
@@ -5210,8 +5121,6 @@ static void dgap_cmdw(struct channel_t *ch, uchar cmd, u16 word, uint ncmds)
 	}
 }
 
-
-
 /*=======================================================================
  *
  *      dgap_cmdw_ext - Sends a extended word command to the FEP.
@@ -5307,7 +5216,6 @@ static void dgap_cmdw_ext(struct channel_t *ch, u16 cmd, u16 word, uint ncmds)
 	}
 }
 
-
 /*=======================================================================
  *
  *      dgap_wmove - Write data to FEP buffer.
@@ -5402,7 +5310,6 @@ static uint dgap_get_custom_baud(struct channel_t *ch)
 	return value;
 }
 
-
 /*
  * Calls the firmware to reset this channel.
  */
@@ -5429,7 +5336,6 @@ static void dgap_firmware_reset_port(struct channel_t *ch)
 	ch->ch_hflow = 0;
 }
 
-
 /*=======================================================================
  *
  *      dgap_param - Set Digi parameters.
@@ -5569,7 +5475,6 @@ static int dgap_param(struct tty_struct *tty)
 
 		ch->ch_baud_info = baud;
 
-
 		/*
 		 * CBAUD has bit position 0x1000 set these days to indicate Linux
 		 * baud rate remap.
@@ -5585,7 +5490,6 @@ static int dgap_param(struct tty_struct *tty)
 		if ((ch->ch_digi.digi_flags & DIGI_FAST) || (ch->ch_c_cflag & CBAUDEX))
 			cflag |= HUPCL;
 
-
 		if ((ch->ch_c_cflag & CBAUDEX) && !(ch->ch_digi.digi_flags & DIGI_FAST)) {
 		/*
 		 * The below code is trying to guarantee that only baud rates
@@ -5598,25 +5502,25 @@ static int dgap_param(struct tty_struct *tty)
 
 			/* Map high speed requests to index into FEP's baud table */
 			switch (tcflag) {
-			case B57600 :
+			case B57600:
 				baudpart = 1;
 				break;
 #ifdef B76800
-			case B76800 :
+			case B76800:
 				baudpart = 2;
 				break;
 #endif
-			case B115200 :
+			case B115200:
 				baudpart = 3;
 				break;
-			case B230400 :
+			case B230400:
 				baudpart = 9;
 				break;
-			case B460800 :
+			case B460800:
 				baudpart = 11;
 				break;
 #ifdef B921600
-			case B921600 :
+			case B921600:
 				baudpart = 12;
 				break;
 #endif
@@ -5667,7 +5571,7 @@ static int dgap_param(struct tty_struct *tty)
 	}
 
 	if (ch->ch_digi.digi_flags & DIGI_ALTPIN)
-		iflag |= IALTPIN ;
+		iflag |= IALTPIN;
 
 	if (iflag != ch->ch_fepiflag) {
 		ch->ch_fepiflag = iflag;
@@ -5759,7 +5663,6 @@ static int dgap_param(struct tty_struct *tty)
 	return 0;
 }
 
-
 /*
  * dgap_parity_scan()
  *
@@ -5837,9 +5740,6 @@ static void dgap_parity_scan(struct channel_t *ch, unsigned char *cbuf, unsigned
 	*len = count;
 }
 
-
-
-
 /*=======================================================================
  *
  *      dgap_event - FEP to host event processing routine.
@@ -6150,7 +6050,6 @@ static ssize_t dgap_driver_pollrate_store(struct device_driver *ddp, const char
 }
 static DRIVER_ATTR(pollrate, (S_IRUSR | S_IWUSR), dgap_driver_pollrate_show, dgap_driver_pollrate_store);
 
-
 static void dgap_create_driver_sysfiles(struct pci_driver *dgap_driver)
 {
 	int rc = 0;
@@ -6167,7 +6066,6 @@ static void dgap_create_driver_sysfiles(struct pci_driver *dgap_driver)
 		printk(KERN_ERR "DGAP: sysfs driver_create_file failed!\n");
 }
 
-
 static void dgap_remove_driver_sysfiles(struct pci_driver *dgap_driver)
 {
 	struct device_driver *driverfs = &dgap_driver->driver;
@@ -6180,7 +6078,6 @@ static void dgap_remove_driver_sysfiles(struct pci_driver *dgap_driver)
 	driver_remove_file(driverfs, &driver_attr_state);
 }
 
-
 #define DGAP_VERIFY_BOARD(p, bd)			\
 	if (!p)						\
 		return 0;				\
@@ -6191,7 +6088,6 @@ static void dgap_remove_driver_sysfiles(struct pci_driver *dgap_driver)
 	if (bd->state != BOARD_READY)			\
 		return 0;				\
 
-
 static ssize_t dgap_ports_state_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6209,7 +6105,6 @@ static ssize_t dgap_ports_state_show(struct device *p, struct device_attribute *
 }
 static DEVICE_ATTR(ports_state, S_IRUSR, dgap_ports_state_show, NULL);
 
-
 static ssize_t dgap_ports_baud_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6226,7 +6121,6 @@ static ssize_t dgap_ports_baud_show(struct device *p, struct device_attribute *a
 }
 static DEVICE_ATTR(ports_baud, S_IRUSR, dgap_ports_baud_show, NULL);
 
-
 static ssize_t dgap_ports_msignals_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6253,7 +6147,6 @@ static ssize_t dgap_ports_msignals_show(struct device *p, struct device_attribut
 }
 static DEVICE_ATTR(ports_msignals, S_IRUSR, dgap_ports_msignals_show, NULL);
 
-
 static ssize_t dgap_ports_iflag_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6269,7 +6162,6 @@ static ssize_t dgap_ports_iflag_show(struct device *p, struct device_attribute *
 }
 static DEVICE_ATTR(ports_iflag, S_IRUSR, dgap_ports_iflag_show, NULL);
 
-
 static ssize_t dgap_ports_cflag_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6285,7 +6177,6 @@ static ssize_t dgap_ports_cflag_show(struct device *p, struct device_attribute *
 }
 static DEVICE_ATTR(ports_cflag, S_IRUSR, dgap_ports_cflag_show, NULL);
 
-
 static ssize_t dgap_ports_oflag_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6301,7 +6192,6 @@ static ssize_t dgap_ports_oflag_show(struct device *p, struct device_attribute *
 }
 static DEVICE_ATTR(ports_oflag, S_IRUSR, dgap_ports_oflag_show, NULL);
 
-
 static ssize_t dgap_ports_lflag_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6317,7 +6207,6 @@ static ssize_t dgap_ports_lflag_show(struct device *p, struct device_attribute *
 }
 static DEVICE_ATTR(ports_lflag, S_IRUSR, dgap_ports_lflag_show, NULL);
 
-
 static ssize_t dgap_ports_digi_flag_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6333,7 +6222,6 @@ static ssize_t dgap_ports_digi_flag_show(struct device *p, struct device_attribu
 }
 static DEVICE_ATTR(ports_digi_flag, S_IRUSR, dgap_ports_digi_flag_show, NULL);
 
-
 static ssize_t dgap_ports_rxcount_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6349,7 +6237,6 @@ static ssize_t dgap_ports_rxcount_show(struct device *p, struct device_attribute
 }
 static DEVICE_ATTR(ports_rxcount, S_IRUSR, dgap_ports_rxcount_show, NULL);
 
-
 static ssize_t dgap_ports_txcount_show(struct device *p, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6365,7 +6252,6 @@ static ssize_t dgap_ports_txcount_show(struct device *p, struct device_attribute
 }
 static DEVICE_ATTR(ports_txcount, S_IRUSR, dgap_ports_txcount_show, NULL);
 
-
 /* this function creates the sys files that will export each signal status
  * to sysfs each value will be put in a separate filename
  */
@@ -6388,7 +6274,6 @@ static void dgap_create_ports_sysfiles(struct board_t *bd)
 		printk(KERN_ERR "DGAP: sysfs device_create_file failed!\n");
 }
 
-
 /* removes all the sys files created for that port */
 static void dgap_remove_ports_sysfiles(struct board_t *bd)
 {
@@ -6404,7 +6289,6 @@ static void dgap_remove_ports_sysfiles(struct board_t *bd)
 	device_remove_file(&(bd->pdev->dev), &dev_attr_ports_txcount);
 }
 
-
 static ssize_t dgap_tty_state_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6429,7 +6313,6 @@ static ssize_t dgap_tty_state_show(struct device *d, struct device_attribute *at
 }
 static DEVICE_ATTR(state, S_IRUSR, dgap_tty_state_show, NULL);
 
-
 static ssize_t dgap_tty_baud_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6454,7 +6337,6 @@ static ssize_t dgap_tty_baud_show(struct device *d, struct device_attribute *att
 }
 static DEVICE_ATTR(baud, S_IRUSR, dgap_tty_baud_show, NULL);
 
-
 static ssize_t dgap_tty_msignals_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6488,7 +6370,6 @@ static ssize_t dgap_tty_msignals_show(struct device *d, struct device_attribute
 }
 static DEVICE_ATTR(msignals, S_IRUSR, dgap_tty_msignals_show, NULL);
 
-
 static ssize_t dgap_tty_iflag_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6513,7 +6394,6 @@ static ssize_t dgap_tty_iflag_show(struct device *d, struct device_attribute *at
 }
 static DEVICE_ATTR(iflag, S_IRUSR, dgap_tty_iflag_show, NULL);
 
-
 static ssize_t dgap_tty_cflag_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6538,7 +6418,6 @@ static ssize_t dgap_tty_cflag_show(struct device *d, struct device_attribute *at
 }
 static DEVICE_ATTR(cflag, S_IRUSR, dgap_tty_cflag_show, NULL);
 
-
 static ssize_t dgap_tty_oflag_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6563,7 +6442,6 @@ static ssize_t dgap_tty_oflag_show(struct device *d, struct device_attribute *at
 }
 static DEVICE_ATTR(oflag, S_IRUSR, dgap_tty_oflag_show, NULL);
 
-
 static ssize_t dgap_tty_lflag_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6588,7 +6466,6 @@ static ssize_t dgap_tty_lflag_show(struct device *d, struct device_attribute *at
 }
 static DEVICE_ATTR(lflag, S_IRUSR, dgap_tty_lflag_show, NULL);
 
-
 static ssize_t dgap_tty_digi_flag_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6613,7 +6490,6 @@ static ssize_t dgap_tty_digi_flag_show(struct device *d, struct device_attribute
 }
 static DEVICE_ATTR(digi_flag, S_IRUSR, dgap_tty_digi_flag_show, NULL);
 
-
 static ssize_t dgap_tty_rxcount_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6638,7 +6514,6 @@ static ssize_t dgap_tty_rxcount_show(struct device *d, struct device_attribute *
 }
 static DEVICE_ATTR(rxcount, S_IRUSR, dgap_tty_rxcount_show, NULL);
 
-
 static ssize_t dgap_tty_txcount_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6663,7 +6538,6 @@ static ssize_t dgap_tty_txcount_show(struct device *d, struct device_attribute *
 }
 static DEVICE_ATTR(txcount, S_IRUSR, dgap_tty_txcount_show, NULL);
 
-
 static ssize_t dgap_tty_name_show(struct device *d, struct device_attribute *attr, char *buf)
 {
 	struct board_t *bd;
@@ -6759,7 +6633,6 @@ static ssize_t dgap_tty_name_show(struct device *d, struct device_attribute *att
 }
 static DEVICE_ATTR(custom_name, S_IRUSR, dgap_tty_name_show, NULL);
 
-
 static struct attribute *dgap_sysfs_tty_entries[] = {
 	&dev_attr_state.attr,
 	&dev_attr_baud.attr,
@@ -6775,15 +6648,11 @@ static struct attribute *dgap_sysfs_tty_entries[] = {
 	NULL
 };
 
-
 static struct attribute_group dgap_tty_attribute_group = {
 	.name = NULL,
 	.attrs = dgap_sysfs_tty_entries,
 };
 
-
-
-
 static void dgap_create_tty_sysfs(struct un_t *un, struct device *c)
 {
 	int ret;
@@ -6799,7 +6668,6 @@ static void dgap_create_tty_sysfs(struct un_t *un, struct device *c)
 
 }
 
-
 static void dgap_remove_tty_sysfs(struct device *c)
 {
 	sysfs_remove_group(&c->kobj, &dgap_tty_attribute_group);
@@ -6823,15 +6691,15 @@ static int	dgap_parsefile(char **in, int Remove)
 		p = p->next;
 
 	/* file must start with a BEGIN */
-	while ( (rc = dgap_gettok(in,p)) != BEGIN ) {
+	while ((rc = dgap_gettok(in, p)) != BEGIN) {
 		if (rc == 0) {
 			dgap_err("unexpected EOF");
 			return -1;
 		}
 	}
 
-	for (; ; ) {
-		rc = dgap_gettok(in,p);
+	for (; ;) {
+		rc = dgap_gettok(in, p);
 		if (rc == 0) {
 			dgap_err("unexpected EOF");
 			return -1;
@@ -6852,7 +6720,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case BOARD:	/* board info */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(BNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(BNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7152,16 +7020,16 @@ static int	dgap_parsefile(char **in, int Remove)
 		case TTYN:	/* tty name prefix */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(TNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(TNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
 			p = p->next;
-			if ( (s = dgap_getword(in)) == NULL ) {
+			if ((s = dgap_getword(in)) == NULL) {
 				dgap_err("unexpeced end of file");
 				return -1;
 			}
-			if ( (p->u.ttyname = dgap_savestring(s)) == NULL ) {
+			if ((p->u.ttyname = dgap_savestring(s)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7170,16 +7038,16 @@ static int	dgap_parsefile(char **in, int Remove)
 		case CU:	/* cu name prefix */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(CUNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(CUNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
 			p = p->next;
-			if ( (s = dgap_getword(in)) == NULL ) {
+			if ((s = dgap_getword(in)) == NULL) {
 				dgap_err("unexpeced end of file");
 				return -1;
 			}
-			if ( (p->u.cuname = dgap_savestring(s)) == NULL ) {
+			if ((p->u.cuname = dgap_savestring(s)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7197,7 +7065,7 @@ static int	dgap_parsefile(char **in, int Remove)
 				dgap_err("line not vaild for PC/em");
 				return -1;
 			}
-			if ( (p->next = dgap_newnode(LNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(LNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7214,7 +7082,7 @@ static int	dgap_parsefile(char **in, int Remove)
 				dgap_err("must specify line info before concentrator");
 				return -1;
 			}
-			if ( (p->next = dgap_newnode(CNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(CNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7262,7 +7130,7 @@ static int	dgap_parsefile(char **in, int Remove)
 					return -1;
 				}
 			}
-			if ( (p->next = dgap_newnode(MNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(MNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7347,16 +7215,16 @@ static int	dgap_parsefile(char **in, int Remove)
 		case PRINT:	/* transparent print name prefix */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(PNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(PNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
 			p = p->next;
-			if ( (s = dgap_getword(in)) == NULL ) {
+			if ((s = dgap_getword(in)) == NULL) {
 				dgap_err("unexpeced end of file");
 				return -1;
 			}
-			if ( (p->u.printname = dgap_savestring(s)) == NULL ) {
+			if ((p->u.printname = dgap_savestring(s)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7365,7 +7233,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case CMAJOR:	/* major number */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(JNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(JNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7385,7 +7253,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case ALTPIN:	/* altpin setting */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(ANODE)) == NULL ) {
+			if ((p->next = dgap_newnode(ANODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7405,7 +7273,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case USEINTR:		/* enable interrupt setting */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(INTRNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(INTRNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7425,7 +7293,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case TTSIZ:	/* size of tty structure */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(TSNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(TSNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7445,7 +7313,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case CHSIZ:	/* channel structure size */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(CSNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(CSNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7465,7 +7333,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case BSSIZ:	/* board structure size */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(BSNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(BSNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7485,7 +7353,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case UNTSIZ:	/* sched structure size */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(USNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(USNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7505,7 +7373,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case F2SIZ:	/* f2200 structure size */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(FSNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(FSNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7525,7 +7393,7 @@ static int	dgap_parsefile(char **in, int Remove)
 		case VPSIZ:	/* vpix structure size */
 			if (dgap_checknode(p))
 				return -1;
-			if ( (p->next = dgap_newnode(VSNODE)) == NULL ) {
+			if ((p->next = dgap_newnode(VSNODE)) == NULL) {
 				dgap_err("out of memory");
 				return -1;
 			}
@@ -7545,7 +7413,6 @@ static int	dgap_parsefile(char **in, int Remove)
 	}
 }
 
-
 /*
  * dgap_sindex: much like index(), but it looks for a match of any character in
  * the group, and returns that position.  If the first character is a ^, then
@@ -7580,7 +7447,6 @@ static char *dgap_sindex (char *string, char *group)
 	return (char *) NULL;
 }
 
-
 /*
  * Get a token from the input file; return 0 if end of file is reached
  */
@@ -7593,7 +7459,7 @@ static int dgap_gettok(char **in, struct cnode *p)
 		w = dgap_getword(in);
 		snprintf(dgap_cword, MAXCWORD, "%s", w);
 		for (t = dgap_tlist; t->token != 0; t++) {
-			if ( !strcmp(w, t->string))
+			if (!strcmp(w, t->string))
 				return t->token;
 		}
 		dgap_err("board !!type not specified");
@@ -7602,7 +7468,7 @@ static int dgap_gettok(char **in, struct cnode *p)
 		while ( (w = dgap_getword(in)) != NULL ) {
 			snprintf(dgap_cword, MAXCWORD, "%s", w);
 			for (t = dgap_tlist; t->token != 0; t++) {
-				if ( !strcmp(w, t->string) )
+				if (!strcmp(w, t->string))
 					return t->token;
 			}
 		}
@@ -7610,7 +7476,6 @@ static int dgap_gettok(char **in, struct cnode *p)
 	}
 }
 
-
 /*
  * get a word from the input stream, also keep track of current line number.
  * words are separated by whitespace.
@@ -7638,7 +7503,6 @@ static char *dgap_getword(char **in)
 	return ret_ptr;
 }
 
-
 /*
  * print an error message, giving the line number in the file where
  * the error occurred.
@@ -7648,7 +7512,6 @@ static void dgap_err(char *s)
 	printk("DGAP: parse: %s\n", s);
 }
 
-
 /*
  * allocate a new configuration node of type t
  */
@@ -7664,7 +7527,6 @@ static struct cnode *dgap_newnode(int t)
 	return n;
 }
 
-
 /*
  * dgap_checknode: see if all the necessary info has been supplied for a node
  * before creating the next node.
@@ -7737,7 +7599,6 @@ static char	*dgap_savestring(char *s)
 	return p;
 }
 
-
 /*
  * Given a board pointer, returns whether we should use interrupts or not.
  */
@@ -7764,7 +7625,6 @@ static uint dgap_config_get_useintr(struct board_t *bd)
 	return 0;
 }
 
-
 /*
  * Given a board pointer, returns whether we turn on altpin or not.
  */
@@ -7791,8 +7651,6 @@ static uint dgap_config_get_altpin(struct board_t *bd)
 	return 0;
 }
 
-
-
 /*
  * Given a specific type of board, if found, detached link and
  * returns the first occurrence in the list.
@@ -7916,7 +7774,7 @@ static char *dgap_create_config_string(struct board_t *bd, char *string)
 			 */
 			speed = p->u.conc.speed;
 			q = p->next;
-			if ((q != NULL) && (q->type == MNODE) ) {
+			if ((q != NULL) && (q->type == MNODE)) {
 				*ptr = (p->u.conc.nport + 0x80);
 				ptr++;
 				p = q;
-- 
1.8.1.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux