From: "edison.jiang" <jiangzhipeng@xxxxxxxxxx> Fix undefined behaviour in the usb apci driver by using 'BIT' marcro. Signed-off-by: edison.jiang <jiangzhipeng@xxxxxxxxxx> --- drivers/usb/core/usb-acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/usb-acpi.c b/drivers/usb/core/usb-acpi.c index 50b2fc7..3e467a8 100644 --- a/drivers/usb/core/usb-acpi.c +++ b/drivers/usb/core/usb-acpi.c @@ -122,7 +122,7 @@ static enum usb_port_connect_type usb_acpi_get_connect_type(acpi_handle handle, * Private to usb-acpi, all the core needs to know is that * port_dev->location is non-zero when it has been set by the firmware. */ -#define USB_ACPI_LOCATION_VALID (1 << 31) +#define USB_ACPI_LOCATION_VALID BIT(31) static struct acpi_device *usb_acpi_find_port(struct acpi_device *parent, int raw) -- 1.9.1