xen: events: refactor xen_create_msi_irq slightly
authorIan Campbell <ian.campbell@citrix.com>
Fri, 18 Feb 2011 16:43:33 +0000 (16:43 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 10 Mar 2011 19:44:41 +0000 (14:44 -0500)
commit8135591e90c81462a6902f6ffa1f1ca021db077a
treefe56b7166bc9a7bfd6e3d0edf1021878e439726a
parentbf480d952bcf25e8ff7e95d2a23964107513ac51
xen: events: refactor xen_create_msi_irq slightly

Calling PHYSDEVOP_map_pirq earlier simplifies error handling and
starts to make the tail end of this function look like
xen_bind_pirq_msi_to_irq.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c