Commit 87a3f305 authored by Daniel Leung's avatar Daniel Leung Committed by Fabio Baltieri
Browse files

boards: posix: renames shadow variables



Renames	shadow variables found by -Wshadow.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent a952055b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -94,14 +94,14 @@ int hw_irq_ctrl_get_highest_prio_irq(void)
		return -1;
	}

	uint64_t irq_status = hw_irq_ctrl_get_irq_status();
	uint64_t hw_irq_status = hw_irq_ctrl_get_irq_status();
	int winner = -1;
	int winner_prio = 256;

	while (irq_status != 0U) {
		int irq_nbr = find_lsb_set(irq_status) - 1;
	while (hw_irq_status != 0U) {
		int irq_nbr = find_lsb_set(hw_irq_status) - 1;

		irq_status &= ~((uint64_t) 1 << irq_nbr);
		hw_irq_status &= ~((uint64_t) 1 << irq_nbr);
		if ((winner_prio > (int)irq_prio[irq_nbr])
		   && (currently_running_prio > (int)irq_prio[irq_nbr])) {
			winner = irq_nbr;
+6 −4
Original line number Diff line number Diff line
@@ -159,14 +159,16 @@ void tm_update_last_phy_sync_time(bs_time_t abs_time)

/**
 * Advance the internal time values of this device
 * until the HW time reaches hw_time
 * until the HW time reaches time @a t.
 *
 * @param t Time to advance to.
 */
static void tm_sleep_until_hw_time(bs_time_t hw_time)
static void tm_sleep_until_hw_time(bs_time_t t)
{
	bs_time_t next_time = TIME_NEVER;

	if (hw_time != TIME_NEVER) {
		next_time = hw_time + hw_time_delta;
	if (t != TIME_NEVER) {
		next_time = t + hw_time_delta;
	}
	tm_sleep_until_abs_time(next_time);
}