summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8bf054e)
No need for checking them to be NULL, we need them in both
implementations.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
int irqchip_cpu_init(struct per_cpu *cpu_data)
{
int irqchip_cpu_init(struct per_cpu *cpu_data)
{
- if (irqchip.cpu_init)
- return irqchip.cpu_init(cpu_data);
-
- return 0;
+ return irqchip.cpu_init(cpu_data);
}
int irqchip_cpu_reset(struct per_cpu *cpu_data)
{
cpu_data->pending_irqs_head = cpu_data->pending_irqs_tail = 0;
}
int irqchip_cpu_reset(struct per_cpu *cpu_data)
{
cpu_data->pending_irqs_head = cpu_data->pending_irqs_tail = 0;
- if (irqchip.cpu_reset)
- return irqchip.cpu_reset(cpu_data, false);
-
- return 0;
+ return irqchip.cpu_reset(cpu_data, false);
}
void irqchip_cpu_shutdown(struct per_cpu *cpu_data)
}
void irqchip_cpu_shutdown(struct per_cpu *cpu_data)
* it has been initialised: this function may be executed during the
* setup phase.
*/
* it has been initialised: this function may be executed during the
* setup phase.
*/
- if (irqchip.cpu_reset)
- irqchip.cpu_reset(cpu_data, true);
+ irqchip.cpu_reset(cpu_data, true);
}
static const struct jailhouse_irqchip *
}
static const struct jailhouse_irqchip *