소스 검색

usb: musb: core: remove unnecessary logical comparison

devctl & MUSB_DEVCTL_HM represents a single bit,
just check for the bit, there's really no need
to compare the result against 0.

Tested-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi 10 년 전
부모
커밋
896f7ea37f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/usb/musb/musb_core.c

+ 1 - 1
drivers/usb/musb/musb_core.c

@@ -879,7 +879,7 @@ b_host:
 	 */
 	 */
 	if (int_usb & MUSB_INTR_RESET) {
 	if (int_usb & MUSB_INTR_RESET) {
 		handled = IRQ_HANDLED;
 		handled = IRQ_HANDLED;
-		if ((devctl & MUSB_DEVCTL_HM) != 0) {
+		if (devctl & MUSB_DEVCTL_HM) {
 			/*
 			/*
 			 * Looks like non-HS BABBLE can be ignored, but
 			 * Looks like non-HS BABBLE can be ignored, but
 			 * HS BABBLE is an error condition. For HS the solution
 			 * HS BABBLE is an error condition. For HS the solution