summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2020-06-23 11:10:01 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-01 14:04:04 +0200
commit06825ca0182cec9444fb2fd05e759757f30f4b37 (patch)
tree89279634a2b673e438adb68cd670c285ab7c6978 /drivers/usb/cdns3
parent8685c46d39910a6335cf120d2d2a5295ec0a60a5 (diff)
usb: cdns3: gadget: use unsigned int for 32-bit number
If it is 'int', it can't stands for the highest bit for 32-bit number, since the largest 'int' is 0x7fffffff. Reviewed-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com> Acked-by: Roger Quadros <rogerq@ti.com> Link: https://lore.kernel.org/r/20200623031001.8469-4-peter.chen@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3')
-rw-r--r--drivers/usb/cdns3/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c
index bed7ee7e9880..7c2913bc8bd7 100644
--- a/drivers/usb/cdns3/gadget.c
+++ b/drivers/usb/cdns3/gadget.c
@@ -1809,7 +1809,7 @@ static irqreturn_t cdns3_device_thread_irq_handler(int irq, void *data)
struct cdns3_device *priv_dev = data;
irqreturn_t ret = IRQ_NONE;
unsigned long flags;
- int bit;
+ unsigned int bit;
unsigned long reg;
spin_lock_irqsave(&priv_dev->lock, flags);