From ab6426e3353ac9731f92218ccf4f36bb8d933407 Mon Sep 17 00:00:00 2001 From: Payal Kshirsagar Date: Tue, 2 Apr 2019 20:24:54 +0530 Subject: [PATCH] staging: emxx_udc: emxx_udc.c: Replace bit shifting with BIT macro Challenge suggested by coccinelle. Prefer using BIT and replace bit shifting with the BIT(x) macro. Signed-off-by: Payal Kshirsagar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/emxx_udc/emxx_udc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index 7b2f1558bdacb..4f3c2c13a225f 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -1495,10 +1495,10 @@ static int std_req_get_status(struct nbu2ss_udc *udc) case USB_RECIP_DEVICE: if (udc->ctrl.wIndex == 0x0000) { if (udc->gadget.is_selfpowered) - status_data |= (1 << USB_DEVICE_SELF_POWERED); + status_data |= BIT(USB_DEVICE_SELF_POWERED); if (udc->remote_wakeup) - status_data |= (1 << USB_DEVICE_REMOTE_WAKEUP); + status_data |= BIT(USB_DEVICE_REMOTE_WAKEUP); result = 0; } @@ -1510,7 +1510,7 @@ static int std_req_get_status(struct nbu2ss_udc *udc) result = _nbu2ss_get_ep_stall(udc, ep_adrs); if (result > 0) - status_data |= (1 << USB_ENDPOINT_HALT); + status_data |= BIT(USB_ENDPOINT_HALT); } break; -- 2.30.2