ARM: imx: Drop unnecessary src_base check
diff mbox series

Message ID 1582691666-339-1-git-send-email-Anson.Huang@nxp.com
State New
Headers show
Series
  • ARM: imx: Drop unnecessary src_base check
Related show

Commit Message

Anson Huang Feb. 26, 2020, 4:34 a.m. UTC
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>
---
 arch/arm/mach-imx/src.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Shawn Guo March 11, 2020, 7:18 a.m. UTC | #1
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 <Anson.Huang@nxp.com>

Applied, thanks.

Patch
diff mbox series

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;