Skip to content

Commit

Permalink
backup mode: the backup_mode() function don't need to return a value
Browse files Browse the repository at this point in the history
As the return value is not used, remove it from this procedure.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
  • Loading branch information
noglitch committed Jul 13, 2017
1 parent 148142d commit 51a7a5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions driver/backup.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,26 @@ static struct at91_pm_bu {
* */
static int resuming = -1;

static int backup_mode(void)
static void backup_mode(void)
{
int ret;

resuming = 0;

ret = readl(AT91C_BASE_SFRBU + SFRBU_DDRBUMCR);
if (ret == 0)
return 0;
return;

do {
ret = readl(AT91C_BASE_SECUMOD + 0x14);
} while (ret == 0);

pm_bu = (struct at91_pm_bu *)AT91C_BASE_SECURAM;
if (!pm_bu->suspended)
return 0;
return;

resuming = 1;
return 1;
return;
}

int backup_resume(void)
Expand Down

0 comments on commit 51a7a5c

Please sign in to comment.