mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
USB: gadget: pxa25x compiler warning fix
Fix config-dependent compiler warning: CC drivers/usb/gadget/pxa25x_udc.o drivers/usb/gadget/pxa25x_udc.c: In function 'pxa25x_udc_irq': drivers/usb/gadget/pxa25x_udc.c:1806: warning: array subscript is above array bounds Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
56a075dcd6
commit
6d84599b3c
1 changed files with 2 additions and 0 deletions
|
@ -1802,11 +1802,13 @@ pxa25x_udc_irq(int irq, void *_dev)
|
||||||
USIR0 |= tmp;
|
USIR0 |= tmp;
|
||||||
handled = 1;
|
handled = 1;
|
||||||
}
|
}
|
||||||
|
#ifndef CONFIG_USB_PXA25X_SMALL
|
||||||
if (usir1 & tmp) {
|
if (usir1 & tmp) {
|
||||||
handle_ep(&dev->ep[i+8]);
|
handle_ep(&dev->ep[i+8]);
|
||||||
USIR1 |= tmp;
|
USIR1 |= tmp;
|
||||||
handled = 1;
|
handled = 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue