diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2020-02-26 05:34:26 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-03-11 08:18:17 +0100 |
commit | 756931e058ec3dc625f85a09ae0c3143d2a6ef72 (patch) | |
tree | 06e7414b06efdbb56e078b34cbac51c7b79dd14d /arch/arm | |
parent | ARM: imx: Remove unnecessary blank lines (diff) | |
download | linux-756931e058ec3dc625f85a09ae0c3143d2a6ef72.tar.xz linux-756931e058ec3dc625f85a09ae0c3143d2a6ef72.zip |
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')
-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; |