Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259259
b: refs/heads/master
c: 9708cd2
h: refs/heads/master
i:
  259257: f18b8ab
  259255: fb939c0
v: v3
  • Loading branch information
Manuel Zerpies authored and Greg Kroah-Hartman committed Jul 1, 2011
1 parent e20df53 commit 893ee80
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 305e7be5d5724ced063fcf21c3df6bd0fed19a04
refs/heads/master: 9708cd2f84fade7f7c771712efa38b5f56d3c115
7 changes: 3 additions & 4 deletions trunk/drivers/usb/wusbcore/wa-xfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/hash.h>
#include <linux/ratelimit.h>

#include "wa-hc.h"
#include "wusbhc.h"
Expand Down Expand Up @@ -1217,16 +1218,14 @@ static int wa_xfer_status_to_errno(u8 status)
if (status == 0)
return 0;
if (status >= ARRAY_SIZE(xlat)) {
if (printk_ratelimit())
printk(KERN_ERR "%s(): BUG? "
printk_ratelimited(KERN_ERR "%s(): BUG? "
"Unknown WA transfer status 0x%02x\n",
__func__, real_status);
return -EINVAL;
}
errno = xlat[status];
if (unlikely(errno > 0)) {
if (printk_ratelimit())
printk(KERN_ERR "%s(): BUG? "
printk_ratelimited(KERN_ERR "%s(): BUG? "
"Inconsistent WA status: 0x%02x\n",
__func__, real_status);
errno = -errno;
Expand Down

0 comments on commit 893ee80

Please sign in to comment.