Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304261
b: refs/heads/master
c: 2f5c638
h: refs/heads/master
i:
  304259: 6da5cf7
v: v3
  • Loading branch information
Christopher Harvey authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent 0e889bb commit 80932db
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 310c6a762e224ae38efac304c936b82ad89a4ff1
refs/heads/master: 2f5c638ced00fff2356ce0a02f16c8e928259750
20 changes: 16 additions & 4 deletions trunk/drivers/staging/usbip/userspace/libsrc/vhci_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ static int parse_status(char *value)


/* skip a header line */
c = strchr(value, '\n') + 1;
c = strchr(value, '\n');
if (!c)
return -1;
c++;

while (*c != '\0') {
int port, status, speed, devid;
Expand Down Expand Up @@ -109,7 +112,10 @@ static int parse_status(char *value)


/* go to the next line */
c = strchr(c, '\n') + 1;
c = strchr(c, '\n');
if (!c)
break;
c++;
}

dbg("exit");
Expand Down Expand Up @@ -264,11 +270,17 @@ static int get_nports(void)
attr_status->method, attr_status->value);

/* skip a header line */
c = strchr(attr_status->value, '\n') + 1;
c = strchr(attr_status->value, '\n');
if (!c)
return 0;
c++;

while (*c != '\0') {
/* go to the next line */
c = strchr(c, '\n') + 1;
c = strchr(c, '\n');
if (!c)
return nports;
c++;
nports += 1;
}

Expand Down

0 comments on commit 80932db

Please sign in to comment.