lib/sw_apps/zynqmp_pmufw/src/pm_power.c
static void PmPowerStackPop(PmPower** const power, u8* const index)
{
	if (0U == pmDfs.sp) {
		/* This should never happen */
		PmAlert("Power stack empty\r\n");
		goto done;
	}
	pmDfs.sp--;
	*power = pmPowerStack[pmDfs.sp].power;
	*index = pmPowerStack[pmDfs.sp].index;

	/* Clearing is not needed, but it's nice for debugging */
	(void)memset(&pmPowerStack[pmDfs.sp], (s32)0U, sizeof(PmPowerStack));

done:
	return;
}
/**
 * PmPowerStackPop() - Pop power/index from stack
 * @power	Pointer to the location where to store popped power node pointer
 * @index	Pointer to the location where to store popped index
 */
Pop power/index from stack
@power       Pointer to the location where to store popped power node pointer
@index       Pointer to the location where to store popped index
Pop power / index from stack @power Pointer to the location where to store popped power node pointer @index Pointer to the location where to store popped index
static void PmPowerStackPop(PmPower** const power, u8* const index)
{
	if (0U == pmDfs.sp) {
		PmAlert("Power stack empty\r\n");
		goto done;
	}
	pmDfs.sp--;
	*power = pmPowerStack[pmDfs.sp].power;
	*index = pmPowerStack[pmDfs.sp].index;
	(void)memset(&pmPowerStack[pmDfs.sp], (s32)0U, sizeof(PmPowerStack));
done:
	return;
}
static void PmPowerStackPop ( PmPower * * const power , u8 * const index ) { if ( 0U == pmDfs . sp ) { PmAlert ( " \r \n " ) ; goto done ; } pmDfs . sp -- ; * power = pmPowerStack [ pmDfs . sp ] . power ; * index = pmPowerStack [ pmDfs . sp ] . index ; ( void ) memset ( & pmPowerStack [ pmDfs . sp ] , ( s32 ) 0U , sizeof ( PmPowerStack ) ) ; done : return ; }
PmPowerStackPop() - Pop power/index from stack
 @power       Pointer to the location where to store popped power node pointer
 @index       Pointer to the location where to store popped index
PmPowerStackPop () - Pop power / index from stack @power Pointer to the location where to store popped power node pointer @index Pointer to the location where to store popped index
/* This should never happen */ /* Clearing is not needed, but it's nice for debugging */