usb: xhci-mtk: break loop when find the endpoint to drop
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Tue, 2 Feb 2021 08:38:24 +0000 (16:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:25:29 +0000 (09:25 +0100)
commitddc682d33024e6af30a6182479b7cc6fb25b7152
treedf9b18db0d72bc5d2404d268518ddc8ac01ae063
parent32410786279fc8422764056ff008dabfcee6f09a
usb: xhci-mtk: break loop when find the endpoint to drop

commit a50ea34d6dd00a12c9cd29cf7b0fa72816bffbcb upstream.

No need to check the following endpoints after finding the endpoint
wanted to drop.

Fixes: 54f6a8af3722 ("usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints")
Cc: stable <stable@vger.kernel.org>
Reported-by: Ikjoon Jang <ikjn@chromium.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1612255104-5363-1-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk-sch.c