[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 04/17] xhci: use (1u << i)
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 04/17] xhci: use (1u << i) |
Date: |
Fri, 29 Aug 2014 14:03:39 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
---
hw/usb/hcd-xhci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index aed8e9f..f7f9fed 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -1180,7 +1180,7 @@ static int xhci_epmask_to_eps_with_streams(XHCIState
*xhci,
slot = &xhci->slots[slotid - 1];
for (i = 2, j = 0; i <= 31; i++) {
- if (!(epmask & (1 << i))) {
+ if (!(epmask & (1u << i))) {
continue;
}
@@ -2465,7 +2465,7 @@ static TRBCCode xhci_configure_slot(XHCIState *xhci,
unsigned int slotid,
res = xhci_alloc_device_streams(xhci, slotid, ictl_ctx[1]);
if (res != CC_SUCCESS) {
for (i = 2; i <= 31; i++) {
- if (ictl_ctx[1] & (1 << i)) {
+ if (ictl_ctx[1] & (1u << i)) {
xhci_disable_ep(xhci, slotid, i);
}
}
--
1.8.3.1
- [Qemu-devel] [PULL 00/17] usb patch queue, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 04/17] xhci: use (1u << i),
Gerd Hoffmann <=
- [Qemu-devel] [PULL 01/17] usb: Fix bootindex for portnr > 9, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 05/17] Revert "xhci: Fix number of streams allocated when using streams", Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 08/17] usb-ohci: add exit function, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 02/17] xhci: fix debug print compiling error, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 11/17] usb-ehci: add ehci unrealize funciton, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 10/17] usb-ehci: add vmstate properity for EHCIState, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 12/17] usb-ehci: add ehci-pci device exit function, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 06/17] usb: add usb_bus_release function, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 13/17] usb-xhci: add exit function, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 15/17] tests: add OHCI qtest, Gerd Hoffmann, 2014/08/29