]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc3: gadget: always decrement by 1
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 24 Aug 2016 11:40:13 +0000 (14:40 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 25 Aug 2016 09:30:27 +0000 (12:30 +0300)
commit6f8245b4e37c2072d3daea24e19dbc0162ffd22c
treea71e25a71748e7dc8ab04fc754dcb90167df7d5b
parent696fe69d7e631f00f23b0ef1694d9b90058dca54
usb: dwc3: gadget: always decrement by 1

We need to decrement in both cases (enq > deq and
enq < deq)

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c