Hello there,
drivers/usb/usbip/vudc_rx.c:145:27: warning: result of ‘11 << 30’
requires 35 bits to represent, but ‘int’ only has 32 bits
[-Wshift-overflow=]
Source code is
urb_p->urb->pipe &= ~(11 << 30);
Maybe better code
urb_p->urb->pipe &= ~(11UL &
;
Suggest add missing break.
Regards
David Binderman
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
not stopping you having a go.
Regards
David Binderman
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
;
case 2:
pm |= CCR_PM_USBPW2;
break;
case 1:
pm |= CCR_PM_USBPW1;
break;
Just an idea.
Regards
David Binderman
--
To unsubscribe from
() around
the rhs of the |=. Like
pm |= (CCR_PM_USBPW1 | CCR_PM_USBPW2 | CCR_PM_USBPW3);
This is okay with only three cases, but it starts to get unwieldy.
Agreed. If more cases are to be added in the future, it might be worth
inventing some new macros.
Regards
David Binderman
-is_epic)
(edge_serial-epic_descriptor.Supports.IOSPClose))) {
3.
[linux-4.1/drivers/usb/serial/io_edgeport.c:1615]: (style) Redundant condition:
edge_serial.is_epic. 'A (!A || B)' is equivalent to 'A || B'
More of the same at lines 1631, 2468, 2497, 2501
Regards
David Binderman
for someone else to claim the victory of submitting a proper patch.
Regards
David Binderman
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
-chg_state = USB_CHG_STATE_DETECTED;
case USB_CHG_STATE_DETECTED:
Suggest code rework.
Regards
David Binderman
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo
Hello there,
[linux-3.16-rc4/drivers/usb/gadget/net2272.c:2075]: (style) Boolean result is
used in bitwise operation. Clarify expression with parentheses.
if (!intcsr (1 NET2272_PCI_IRQ)) {
Maybe the programmer intended
if (!(intcsr (1 NET2272_PCI_IRQ))) {
Regards
David
:
pm |= CCR_PM_USBPW3;
case 2:
pm |= CCR_PM_USBPW2;
case 1:
pm |= CCR_PM_USBPW1;
}
Suggest add missing breaks.
Regards
David Binderman
--
To unsubscribe from this list: send the line unsubscribe
of band, I usually try to arrange that
the error message shows the value and, if possible, the band limits.
Suggest rework error message in call to dev_err. Maybe
dev_err(dev-dev, Invalid value '0x3' for transactions per microframe\n);
would be better.
Regards
David Binderman
.
Suggest code rework.
Regards
David Binderman
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
code ok.
Parameter id is if type u8, you might want to add a few more chars to
res_name to accommodate possible future expansion up to 256.
Just an idea, it doesn't have to happen.
Regards
David Binderman
Reported-by: David Binderman dcb...@hotmail.com
Signed-off-by: Daniel Mack zon
you, if some enterprising person were to invent the
patch, I wouldn't grumble ;-
Regards
David Binderman
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info
rework.
Regards
David Binderman
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
15 matches
Mail list logo