Skip to content

Commit

Permalink
soc: ti: pm33xx: Remove set but unused variable 'ret'
Browse files Browse the repository at this point in the history
Fixes the following W=1 kernel build warning(s):

 drivers/soc/ti/pm33xx.c: In function ‘am33xx_do_sram_idle’:
 drivers/soc/ti/pm33xx.c:138:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Cc: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
  • Loading branch information
Lee Jones authored and Santosh Shilimkar committed Nov 22, 2020
1 parent ed93a9e commit edac869
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/soc/ti/pm33xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ static int am33xx_push_sram_idle(void)

static int am33xx_do_sram_idle(u32 wfi_flags)
{
int ret = 0;

if (!m3_ipc || !pm_ops)
return 0;

if (wfi_flags & WFI_FLAG_WAKE_M3)
ret = m3_ipc->ops->prepare_low_power(m3_ipc, WKUP_M3_IDLE);
m3_ipc->ops->prepare_low_power(m3_ipc, WKUP_M3_IDLE);

return pm_ops->cpu_suspend(am33xx_do_wfi_sram, wfi_flags);
}
Expand Down

0 comments on commit edac869

Please sign in to comment.