Commit c1d5df69 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Felipe Balbi

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: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 88b02f2c
...@@ -116,10 +116,10 @@ static inline void dwc2_gadget_incr_frame_num(struct dwc2_hsotg_ep *hs_ep) ...@@ -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; hs_ep->target_frame += hs_ep->interval;
if (hs_ep->target_frame > DSTS_SOFFN_LIMIT) { 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; hs_ep->target_frame &= DSTS_SOFFN_LIMIT;
} else { } else {
hs_ep->frame_overrun = 0; hs_ep->frame_overrun = false;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment