usb: xhci-mtk: remove unnecessary setting of has_ippc
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 7 May 2021 02:11:25 +0000 (10:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 14:21:49 +0000 (16:21 +0200)
Due to @has_ippc's default value is 0, no need set it again if fail
to get ippc base address

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20210507021127.54717-2-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk.c

index b2058b3..2548976 100644 (file)
@@ -495,8 +495,6 @@ static int xhci_mtk_probe(struct platform_device *pdev)
                        goto put_usb2_hcd;
                }
                mtk->has_ippc = true;
-       } else {
-               mtk->has_ippc = false;
        }
 
        device_init_wakeup(dev, true);