John Youn 3de2685f0c usb: dwc3: gadget: Fix truncated cast issue
From sparse:
warning: cast truncates bits from constant value (100 becomes 0)

The DWC3_TRB_NUM constant is too big for u8. Do the calculation a
slightly different way that should still be optimized out for the case
where DWC3_TRB_NUM == 256.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-06-20 12:32:45 +03:00
..
2016-06-20 12:32:38 +03:00
2016-06-20 12:32:41 +03:00
2016-04-28 09:32:39 -07:00
2015-03-10 15:33:33 -05:00
2015-05-13 12:06:52 -05:00