fotg210-udc: Remove a dubious condition leading to fotg210_done
authorFabian Vogt <fabian@ritter-vogt.de>
Wed, 24 Mar 2021 14:11:11 +0000 (15:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:50:12 +0000 (09:50 +0200)
commit3515fd226ea0ab2bdb9955de879e6361d5c424aa
tree3bb4846a3f424e77688c5fcdac3686e74d7b5589
parent36df13916de9a7555aad1eb35b659f95c528d144
fotg210-udc: Remove a dubious condition leading to fotg210_done

[ Upstream commit c7f755b243494d6043aadcd9a2989cb157958b95 ]

When the EP0 IN request was not completed but less than a packet sent,
it would complete the request successfully. That doesn't make sense
and can't really happen as fotg210_start_dma always sends
min(length, maxpkt) bytes.

Fixes: b84a8dee23fd ("usb: gadget: add Faraday fotg210_udc driver")
Signed-off-by: Fabian Vogt <fabian@ritter-vogt.de>
Link: https://lore.kernel.org/r/20210324141115.9384-4-fabian@ritter-vogt.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/gadget/udc/fotg210-udc.c