diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2020-02-26 12:34:26 +0800 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-03-11 15:18:17 +0800 |
commit | 756931e058ec3dc625f85a09ae0c3143d2a6ef72 (patch) | |
tree | 06e7414b06efdbb56e078b34cbac51c7b79dd14d /arch/arm/mach-imx | |
parent | 62d1c1df85832d75acacb1e5cab2b1e7b80d3c1e (diff) |
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.c | 3 |
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; |