usb: xhci-mtk: remove unnecessary error check

No need check the return value, just return it.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20211102025004.29156-1-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Chunfeng Yun 2021-11-02 10:50:03 +08:00 committed by Greg Kroah-Hartman
parent 6352f24ba4
commit 38269d2fad
1 changed files with 1 additions and 4 deletions

View File

@ -437,11 +437,8 @@ static int xhci_mtk_setup(struct usb_hcd *hcd)
if (ret)
return ret;
if (usb_hcd_is_primary_hcd(hcd)) {
if (usb_hcd_is_primary_hcd(hcd))
ret = xhci_mtk_sch_init(mtk);
if (ret)
return ret;
}
return ret;
}