diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-01-23 09:45:31 -0600 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-03-13 10:47:50 +0200 |
commit | c1d5df69f55b997b327e68c24be43cf6686304bb (patch) | |
tree | e3f62be078f16c45f8b08eb836afb87ddfc1273c /drivers/usb/dwc2/gadget.c | |
parent | 88b02f2cb1e13e1ab161c5cb2d5c69f76fe05be2 (diff) | |
download | linux-c1d5df69f55b997b327e68c24be43cf6686304bb.tar.bz2 |
usb: dwc2: gadget: Use true and false for boolean values
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle.
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/gadget.c')
-rw-r--r-- | drivers/usb/dwc2/gadget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index d67f9aeedf84..5d91ff948972 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -116,10 +116,10 @@ static inline void dwc2_gadget_incr_frame_num(struct dwc2_hsotg_ep *hs_ep) { hs_ep->target_frame += hs_ep->interval; if (hs_ep->target_frame > DSTS_SOFFN_LIMIT) { - hs_ep->frame_overrun = 1; + hs_ep->frame_overrun = true; hs_ep->target_frame &= DSTS_SOFFN_LIMIT; } else { - hs_ep->frame_overrun = 0; + hs_ep->frame_overrun = false; } } |