Skip to contentSkip to conversation

ARM: imx: Drop unnecessary src_base check

PATCH Applied Anson Huang 2 participants 2 messages Feb 26, 2020 – Mar 11, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/mach-imx/src.c | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/mach-imx/src.c +0 -3
index 0beea6d..f52f371 100644
@@ -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;
 
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 4 lines · Anson Huang

src_base is already checked during src driver initialization, no need to check its availability again when using it.

Applied, thanks.