Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127210
b: refs/heads/master
c: e64a521
h: refs/heads/master
v: v3
  • Loading branch information
roel kluin authored and Greg Kroah-Hartman committed Jan 7, 2009
1 parent 4fccd76 commit c6a204f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 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: 3b438e30c686b1e904c759d3354d335050ab33f9
refs/heads/master: e64a5219296fff11a0da0322b43012265cd3b327
8 changes: 2 additions & 6 deletions trunk/drivers/usb/host/ehci-dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,7 @@ static void qh_lines (
(scratch >> 16) & 0x7fff,
scratch,
td->urb);
if (temp < 0)
temp = 0;
else if (size < temp)
if (size < temp)
temp = size;
size -= temp;
next += temp;
Expand All @@ -466,9 +464,7 @@ static void qh_lines (
}

temp = snprintf (next, size, "\n");
if (temp < 0)
temp = 0;
else if (size < temp)
if (size < temp)
temp = size;
size -= temp;
next += temp;
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/usb/misc/usbtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ static struct urb *simple_alloc_urb (
{
struct urb *urb;

if (bytes < 0)
return NULL;
urb = usb_alloc_urb (0, GFP_KERNEL);
if (!urb)
return urb;
Expand Down

0 comments on commit c6a204f

Please sign in to comment.