mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-08 05:24:32 -05:00
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:
committed by
Greg Kroah-Hartman
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user