summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2015-12-10 17:50:12 -0300
committerFelipe Balbi <balbi@ti.com>2015-12-16 10:07:28 -0600
commit1a1716260008b16887d72b417bd069ee4220c42e (patch)
tree02f4d46daa95629e65c96f820fcbcbeebc469b9f /drivers/usb/musb
parentca07099460231576cd7aceed5da47a06cee8063b (diff)
downloadop-kernel-dev-1a1716260008b16887d72b417bd069ee4220c42e.zip
op-kernel-dev-1a1716260008b16887d72b417bd069ee4220c42e.tar.gz
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: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_gadget.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 67ad630..87bd578 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -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)))
+ can_bulk_split(musb,
+ musb_ep->type))
csr |= MUSB_TXCSR_AUTOSET;
}
csr &= ~MUSB_TXCSR_P_UNDERRUN;
OpenPOWER on IntegriCloud