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:
parent
6352f24ba4
commit
38269d2fad
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue