2020-02-26 04:40:46

by Anson Huang

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>
---
arch/arm/mach-imx/src.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/arch/arm/mach-imx/src.c b/arch/arm/mach-imx/src.c
index 0beea6d..f52f371 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;

--
2.7.4


2020-03-11 07:19:15

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH] ARM: imx: Drop unnecessary src_base check

On Wed, Feb 26, 2020 at 12:34:26PM +0800, Anson Huang wrote:
> src_base is already checked during src driver initialization, no
> need to check its availability again when using it.
>
> Signed-off-by: Anson Huang <[email protected]>

Applied, thanks.