x86/PCI: Use struct_size() in pirq_convert_irt_table()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 19 May 2023 17:42:28 +0000 (19:42 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Jul 2023 16:33:20 +0000 (11:33 -0500)
commitc00f94ad9ab0ea1560b9d98d96bfef0a9886394e
tree2c2df77ea18b62c9a7b4bbee830b38e297df1aa8
parent091f9f7f3b819434eed5c1c3acad6c7b32bf13f6
x86/PCI: Use struct_size() in pirq_convert_irt_table()

Use struct_size() instead of hand-writing it. It is less verbose, more
robust and more informative.

Link: https://lore.kernel.org/r/00a5cc2cd322e7dea26579916ac6dda9c637aa57.1684518118.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/irq.c