pseries: Cleanup duplications of ics_valid_irq() code
commit1ecbbab46925d4810fc35aba45cf93cb80ff0734
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 29 Oct 2012 17:25:02 +0000 (29 17:25 +0000)
committerAlexander Graf <agraf@suse.de>
Thu, 1 Nov 2012 12:02:22 +0000 (1 13:02 +0100)
tree13c1dd2b271ab51d69b23f07b7ba831150cf2f99
parentbf0175de6c76779d4c8b0606de7bd2a5a0b87c7a
pseries: Cleanup duplications of ics_valid_irq() code

A couple of places in xics.c open-coded the same logic as is already
implemented in ics_valid_irq().  This patch fixes the code duplication.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/xics.c