Skip to content

Commit 89e9905

Browse files
ye xingchentmlind
authored andcommitted
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>
1 parent 31006a8 commit 89e9905

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

arch/arm/mach-omap2/pm33xx-core.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,14 @@ static int amx3_common_init(int (*idle)(u32 wfi_flags))
104104

105105
static int am33xx_suspend_init(int (*idle)(u32 wfi_flags))
106106
{
107-
int ret;
108-
109107
gfx_l4ls_clkdm = clkdm_lookup("gfx_l4ls_gfx_clkdm");
110108

111109
if (!gfx_l4ls_clkdm) {
112110
pr_err("PM: Cannot lookup gfx_l4ls_clkdm clockdomains\n");
113111
return -ENODEV;
114112
}
115113

116-
ret = amx3_common_init(idle);
117-
118-
return ret;
114+
return amx3_common_init(idle);
119115
}
120116

121117
static int am43xx_suspend_init(int (*idle)(u32 wfi_flags))

0 commit comments

Comments
 (0)