Commit 1a171626 authored by Geyslan G. Bem's avatar Geyslan G. Bem Committed by Felipe Balbi
Browse files

usb: musb: gadget: remove redundant condition



This patch removes redundant condition.

 (!A || (A && B)) is the same as (!A || B).

Fixes indentation too.

Tested by: compilation only
Caught by: cppcheck

Signed-off-by: default avatarGeyslan G. Bem <geyslan@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent ca070994
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -353,9 +353,8 @@ static void txstate(struct musb *musb, struct musb_request *req)
					 *	1	>0	Yes(FS bulk)
					 */
					if (!musb_ep->hb_mult ||
						(musb_ep->hb_mult &&
					    can_bulk_split(musb,
						    musb_ep->type)))
							   musb_ep->type))
						csr |= MUSB_TXCSR_AUTOSET;
				}
				csr &= ~MUSB_TXCSR_P_UNDERRUN;