diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-09-20 08:51:13 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2023-03-28 07:44:28 +0200 |
commit | 89e990559c378e06d2b2ef4f5dd6e963795cb7d8 (patch) | |
tree | d21e090d1834de7fa20206940336fd6c23be3bc9 /arch/arm/mach-omap2 | |
parent | ARM: OMAP2+: fix repeated words in comments (diff) | |
download | linux-89e990559c378e06d2b2ef4f5dd6e963795cb7d8.tar.xz linux-89e990559c378e06d2b2ef4f5dd6e963795cb7d8.zip |
ARM: OMAP2+: Remove the unneeded result variable
Return the value amx3_common_init() directly instead of storing it in
another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Message-Id: <20220920065113.215685-1-ye.xingchen@zte.com.cn>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/pm33xx-core.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/pm33xx-core.c b/arch/arm/mach-omap2/pm33xx-core.c index 711bcc6c8ddd..c907478be196 100644 --- a/arch/arm/mach-omap2/pm33xx-core.c +++ b/arch/arm/mach-omap2/pm33xx-core.c @@ -104,8 +104,6 @@ static int amx3_common_init(int (*idle)(u32 wfi_flags)) static int am33xx_suspend_init(int (*idle)(u32 wfi_flags)) { - int ret; - gfx_l4ls_clkdm = clkdm_lookup("gfx_l4ls_gfx_clkdm"); if (!gfx_l4ls_clkdm) { @@ -113,9 +111,7 @@ static int am33xx_suspend_init(int (*idle)(u32 wfi_flags)) return -ENODEV; } - ret = amx3_common_init(idle); - - return ret; + return amx3_common_init(idle); } static int am43xx_suspend_init(int (*idle)(u32 wfi_flags)) |