]> git.ipfire.org Git - thirdparty/linux.git/commit
genirq/msi: Slightly simplify msi_domain_alloc()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 19 Oct 2025 08:40:08 +0000 (10:40 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 20 Oct 2025 18:18:48 +0000 (20:18 +0200)
commitac646f44956edc9aaa406b4a8fef17888a2166af
treec7ebd728b60ed3e4a648675016f87813fe12a3f6
parentdce745009349fc391271c9415d5e242781ddadd7
genirq/msi: Slightly simplify msi_domain_alloc()

The return value of irq_find_mapping() is only tested, not used for
anything else.

Replaced it by irq_resolve_mapping() which is internally used by
irq_find_mapping() and allows a simple boolean decision.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/1ce680114cdb8d40b072c54d7f015696a540e5a6.1760863194.git.christophe.jaillet@wanadoo.fr
kernel/irq/msi.c