diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2021-11-02 03:50:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-17 14:56:54 +0100 |
commit | 38269d2faddc26278edc99e14458c95dfd10455b (patch) | |
tree | 6b410ab4955973e0196fdc5c2b8d92c6a89d68c6 /drivers/usb/host | |
parent | Docs: usb: update writesize, copy_from_user, usb_fill_bulk_urb, usb_submit_urb (diff) | |
download | linux-38269d2faddc26278edc99e14458c95dfd10455b.tar.xz linux-38269d2faddc26278edc99e14458c95dfd10455b.zip |
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>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-mtk.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 58a0eae4f41b..8b98de409c71 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -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; } |