Message ID | 1582691666-339-1-git-send-email-Anson.Huang@nxp.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 756931e058ec3dc625f85a09ae0c3143d2a6ef72 |
Headers | show |
Series | ARM: imx: Drop unnecessary src_base check | expand |
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.
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;
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(-)