From 893ee80427cf82d895ee887e8bbbaa8b9984dc28 Mon Sep 17 00:00:00 2001 From: Manuel Zerpies Date: Thu, 16 Jun 2011 14:15:16 +0200 Subject: [PATCH] --- yaml --- r: 259259 b: refs/heads/master c: 9708cd2f84fade7f7c771712efa38b5f56d3c115 h: refs/heads/master i: 259257: f18b8ab97a952e3ab839bdbe3624aa2fef476f6e 259255: fb939c03a5da9a1d431a591417eb702b249af5ce v: v3 --- [refs] | 2 +- trunk/drivers/usb/wusbcore/wa-xfer.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 46f5d841540c..ac3cb492eca5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 305e7be5d5724ced063fcf21c3df6bd0fed19a04 +refs/heads/master: 9708cd2f84fade7f7c771712efa38b5f56d3c115 diff --git a/trunk/drivers/usb/wusbcore/wa-xfer.c b/trunk/drivers/usb/wusbcore/wa-xfer.c index 6ccd93a9b909..419334568be6 100644 --- a/trunk/drivers/usb/wusbcore/wa-xfer.c +++ b/trunk/drivers/usb/wusbcore/wa-xfer.c @@ -83,6 +83,7 @@ #include #include #include +#include #include "wa-hc.h" #include "wusbhc.h" @@ -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;