ppc/xics: remove useless if condition
The previous code section uses a 'first < 0' test and returns. Therefore, there is no need to test the 'first' variable against '>= 0' afterwards. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
c4a2e3a970
commit
e0f7110aca
@ -329,11 +329,9 @@ int spapr_ics_alloc_block(ICSState *ics, int num, bool lsi,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (first >= 0) {
|
||||
for (i = first; i < first + num; ++i) {
|
||||
ics_set_irq_type(ics, i, lsi);
|
||||
}
|
||||
}
|
||||
first += ics->offset;
|
||||
|
||||
trace_xics_alloc_block(first, num, lsi, align);
|
||||
|
Loading…
Reference in New Issue
Block a user