summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-02-26 07:34:26 +0300
committerShawn Guo <shawnguo@kernel.org>2020-03-11 10:18:17 +0300
commit756931e058ec3dc625f85a09ae0c3143d2a6ef72 (patch)
tree06e7414b06efdbb56e078b34cbac51c7b79dd14d /arch/arm/mach-imx
parent62d1c1df85832d75acacb1e5cab2b1e7b80d3c1e (diff)
downloadlinux-756931e058ec3dc625f85a09ae0c3143d2a6ef72.tar.xz
ARM: imx: Drop unnecessary src_base check
src_base is already checked during src driver initialization, no need to check its availability again when using it. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/src.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/src.c b/arch/arm/mach-imx/src.c
index 0beea6d0217f..f52f371292ac 100644
--- a/arch/arm/mach-imx/src.c
+++ b/arch/arm/mach-imx/src.c
@@ -43,9 +43,6 @@ static int imx_src_reset_module(struct reset_controller_dev *rcdev,
int bit;
u32 val;
- if (!src_base)
- return -ENODEV;
-
if (sw_reset_idx >= ARRAY_SIZE(sw_reset_bits))
return -EINVAL;