ARM: s3c64xx: fix return value check in s3c_usb_otgphy_init()
authorQinglang Miao <miaoqinglang@huawei.com>
Tue, 28 Jul 2020 02:27:56 +0000 (10:27 +0800)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 17 Aug 2020 15:43:53 +0000 (17:43 +0200)
commit12b7b5c04bccc82db74f7c0de8e2d2b93d27cebf
tree733691aa9e4330b59aab8947f1017b1f57ee9959
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
ARM: s3c64xx: fix return value check in s3c_usb_otgphy_init()

The function clk_get() returns ERR_PTR() in case of error and
never returns NULL. So there's no need to test whether xusbxti
is NULL, just remove the redundant part in the return value check.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c64xx/setup-usb-phy.c