]> git.baikalelectronics.ru Git - kernel.git/commit
platform-msi: Do not cache msi_desc in handler_data
authorMarc Zyngier <marc.zyngier@arm.com>
Sun, 13 Sep 2015 12:37:03 +0000 (13:37 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Sep 2015 15:06:29 +0000 (17:06 +0200)
commit1e7dca04e0d0aa507fea0ef08d23231b735e9a34
tree27e2f10d7ec89ef9da3354626429305500a66642
parentffb75e7cb8cd0b4051c3f4f7ffdc88627388f08a
platform-msi: Do not cache msi_desc in handler_data

The current implementation of platform MSI caches the msi_desc
pointer in irq_data::handler_data. This is a bit silly, as
we also have irq_data::msi_desc, which is perfectly valid.

Remove the useless assignment and simplify the whole flow.

Reported-by: Ma Jun <majun258@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Jiang Liu <jiang.liu@linux.intel.com>
Link: http://lkml.kernel.org/r/1442147824-20971-1-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/base/platform-msi.c