Commit 89e99055 authored by ye xingchen's avatar ye xingchen Committed by Tony Lindgren

ARM: OMAP2+: Remove the unneeded result variable

Return the value amx3_common_init() directly instead of storing it in
another redundant variable.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Message-Id: <20220920065113.215685-1-ye.xingchen@zte.com.cn>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 31006a88
...@@ -104,8 +104,6 @@ static int amx3_common_init(int (*idle)(u32 wfi_flags)) ...@@ -104,8 +104,6 @@ static int amx3_common_init(int (*idle)(u32 wfi_flags))
static int am33xx_suspend_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"); gfx_l4ls_clkdm = clkdm_lookup("gfx_l4ls_gfx_clkdm");
if (!gfx_l4ls_clkdm) { if (!gfx_l4ls_clkdm) {
...@@ -113,9 +111,7 @@ static int am33xx_suspend_init(int (*idle)(u32 wfi_flags)) ...@@ -113,9 +111,7 @@ static int am33xx_suspend_init(int (*idle)(u32 wfi_flags))
return -ENODEV; return -ENODEV;
} }
ret = amx3_common_init(idle); return amx3_common_init(idle);
return ret;
} }
static int am43xx_suspend_init(int (*idle)(u32 wfi_flags)) static int am43xx_suspend_init(int (*idle)(u32 wfi_flags))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment