[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1582691666-339-1-git-send-email-Anson.Huang@nxp.com>
Date: Wed, 26 Feb 2020 12:34:26 +0800
From: Anson Huang <Anson.Huang@....com>
To: linux@...linux.org.uk, shawnguo@...nel.org, s.hauer@...gutronix.de,
kernel@...gutronix.de, festevam@...il.com, allison@...utok.net,
gregkh@...uxfoundation.org, tglx@...utronix.de,
kstewart@...uxfoundation.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Cc: Linux-imx@....com
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 <Anson.Huang@....com>
---
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
Powered by blists - more mailing lists