Commit 93fb1e25 authored by Mark Hounschell's avatar Mark Hounschell Committed by Greg Kroah-Hartman

staging: dgap: fix a few more 80+ char lines (02/02)

This patch fixes a few more 80+ char lines as reported by checkpatch
Signed-off-by: default avatarMark Hounschell <markh@compro.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 84e88287
...@@ -7582,7 +7582,9 @@ static char *dgap_getword(char **in) ...@@ -7582,7 +7582,9 @@ static char *dgap_getword(char **in)
*in = ptr + 1; *in = ptr + 1;
/* Eat any extra spaces/tabs/newlines that might be present */ /* Eat any extra spaces/tabs/newlines that might be present */
while (*in && **in && ((**in == ' ') || (**in == '\t') || (**in == '\n'))) { while (*in && **in && ((**in == ' ') ||
(**in == '\t') ||
(**in == '\n'))) {
**in = '\0'; **in = '\0';
*in = *in + 1; *in = *in + 1;
} }
...@@ -7765,7 +7767,8 @@ static struct cnode *dgap_find_config(int type, int bus, int slot) ...@@ -7765,7 +7767,8 @@ static struct cnode *dgap_find_config(int type, int bus, int slot)
found = p; found = p;
/* /*
* Keep walking thru the list till we find the next board. * Keep walking thru the list till we
* find the next board.
*/ */
while (p->next != NULL) { while (p->next != NULL) {
prev2 = p; prev2 = p;
...@@ -7773,13 +7776,16 @@ static struct cnode *dgap_find_config(int type, int bus, int slot) ...@@ -7773,13 +7776,16 @@ static struct cnode *dgap_find_config(int type, int bus, int slot)
if (p->type == BNODE) { if (p->type == BNODE) {
/* /*
* Mark the end of our 1 board chain of configs. * Mark the end of our 1 board
* chain of configs.
*/ */
prev2->next = NULL; prev2->next = NULL;
/* /*
* Link the "next" board to the previous board, * Link the "next" board to the
* effectively "unlinking" our board from the main config. * previous board, effectively
* "unlinking" our board from
* the main config.
*/ */
prev->next = p; prev->next = p;
...@@ -7855,9 +7861,9 @@ static char *dgap_create_config_string(struct board_t *bd, char *string) ...@@ -7855,9 +7861,9 @@ static char *dgap_create_config_string(struct board_t *bd, char *string)
case CNODE: case CNODE:
/* /*
* Because the EPC/con concentrators can have EM modules * Because the EPC/con concentrators can have EM modules
* hanging off of them, we have to walk ahead in the list * hanging off of them, we have to walk ahead in the
* and keep adding the number of ports on each EM to the config. * list and keep adding the number of ports on each EM
* UGH! * to the config. UGH!
*/ */
speed = p->u.conc.speed; speed = p->u.conc.speed;
q = p->next; q = p->next;
...@@ -7865,7 +7871,9 @@ static char *dgap_create_config_string(struct board_t *bd, char *string) ...@@ -7865,7 +7871,9 @@ static char *dgap_create_config_string(struct board_t *bd, char *string)
*ptr = (p->u.conc.nport + 0x80); *ptr = (p->u.conc.nport + 0x80);
ptr++; ptr++;
p = q; p = q;
while ((q->next != NULL) && (q->next->type) == MNODE) { while ((q->next != NULL) &&
(q->next->type) == MNODE) {
*ptr = (q->u.module.nport + 0x80); *ptr = (q->u.module.nport + 0x80);
ptr++; ptr++;
p = q; p = q;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment